Commit Graph

180 Commits

Author SHA1 Message Date
Michael Vines 20c6001836 derive Debug for pods for BPF target as well 2022-01-05 08:51:18 -08:00
Sam Kim c150b4b197 Replace to_elgamal_ciphertext with From trait for ElGamalCiphertext 2022-01-05 08:51:18 -08:00
Sam Kim a40e7fc59b Rename Pedersen related structs and methods for consistency 2022-01-05 08:51:18 -08:00
Michael Vines 17cda46531 Merge transfer instructions 2022-01-05 08:51:18 -08:00
Michael Vines 42f7c0c7f6 Update tests 2022-01-05 08:51:18 -08:00
Michael Vines 20bce10204 add clippy 2022-01-05 08:51:18 -08:00
Sam Kim 9b73e351aa minor name change 2022-01-05 08:51:18 -08:00
Sam Kim d6a808f41a simplify get_ciphertext methods 2022-01-05 08:51:18 -08:00
Sam Kim 93f2323e52 add ciphertext extraction methods for TransferData 2022-01-05 08:51:18 -08:00
Sam Kim 75896958b6 rename to_elgamal_ctxt to to_elgamal_ciphertext 2022-01-05 08:51:18 -08:00
Michael Vines a622ee4b8d Rename ElGamal::keygen to ElGamal::new 2022-01-05 08:51:18 -08:00
Michael Vines 94a96670e8 Update lib.rs 2022-01-05 08:51:18 -08:00
Michael Vines 8bb6f0dc6f Rename ElGamalSK to ElGamalSecretKey 2022-01-05 08:51:18 -08:00
Michael Vines 5445e13828 Rename dlog.rs to discrete_log.rs 2022-01-05 08:51:18 -08:00
Michael Vines 23d3b540a1 Avoid explicit curve25519_dalek dependency in demo/ 2022-01-05 08:51:18 -08:00
Sam Kim 1ef3a621a8 add decryption in demo 2022-01-05 08:51:18 -08:00
Sam Kim d20d03cd7f clean up ElGamal decryption 2022-01-05 08:51:18 -08:00
Michael Vines 409b55ad81 add some comments 2022-01-05 08:51:18 -08:00
Michael Vines 667e72144e rename encode.rs to dlog.rs 2022-01-05 08:51:18 -08:00
Michael Vines 2f138ecb96 Fix tests 2022-01-05 08:51:18 -08:00
Michael Vines 48047b55ba clippy 2022-01-05 08:51:18 -08:00
Michael Vines f227504ea7 Add sol_zk_token_elgamal syscall declarations 2022-01-05 08:51:18 -08:00
Michael Vines 78799640ea Rename ElGamalCT to ElGamalCiphertext, ElGamalPK to ElGamalPubkey 2022-01-05 08:51:18 -08:00
Michael Vines f3e7e62813 Refactor sdk/src/pod.rs 2022-01-05 08:51:18 -08:00
Michael Vines d01d425e4b Rename crypto crate to sdk 2022-01-05 08:51:18 -08:00
Michael Vines 7da620f0b4 Merge sdk/ back into crypto/ 2022-01-05 08:51:18 -08:00
Michael Vines 88b71c0732 Add demo cli 2022-01-05 08:51:18 -08:00
Michael Vines df521bbfc8 Adjust crate names 2022-01-05 08:51:18 -08:00
Michael Vines 03a3a501f3 Groom Cargo.tomls 2022-01-05 08:51:18 -08:00
Michael Vines ae5d254e73 Move solana-specific parts of crypto/ into sdk/ 2022-01-05 08:51:18 -08:00