Commit Graph

17169 Commits

Author SHA1 Message Date
43e368faf6 add ElGamal key derivation from Ed25519 signing key 2022-01-05 08:51:18 -08:00
7aef523a41 sdk/ now builds for wasm32-unknown-unknown 2022-01-05 08:51:18 -08:00
4b61e27d12 divide out elgamal algorithms with keypair 2022-01-05 08:51:18 -08:00
a8ab615c89 Add inner instruction utility functions 2022-01-05 08:51:18 -08:00
93eb49a3e3 Rename ElGamalKeypair fields 2022-01-05 08:51:18 -08:00
c33e24de57 Rename ElGamal to ElGamalKeypair 2022-01-05 08:51:18 -08:00
f272c025bd Rename ElGamal::new() to ElGamal::default() 2022-01-05 08:51:18 -08:00
6b59beda7b Add fn to save/load ElGamal 2022-01-05 08:51:18 -08:00
1daf676b37 Update to Solana 1.7.15 2022-01-05 08:51:18 -08:00
2c1aa715b0 Adjust ElGamal::new() signature 2022-01-05 08:51:18 -08:00
2d62e4e6bd update program processor for the single transfer instruction 2022-01-05 08:51:18 -08:00
09b8baa4b1 merge 2022-01-05 08:51:18 -08:00
db69128825 Simplify range proof verification syntax for merged transfer 2022-01-05 08:51:18 -08:00
a5d1efc207 Rust fmt and clippy 2022-01-05 08:51:18 -08:00
25216705b3 Add UpdateAccountPk tests for edge cases 2022-01-05 08:51:18 -08:00
1af1106b87 Add CloseAccount tests for edge cases 2022-01-05 08:51:18 -08:00
73c06d9e33 Rename ElGamalPubkey::gen_decrypt_handle method to ElGamalPubkey::decrypt_handle 2022-01-05 08:51:18 -08:00
20c6001836 derive Debug for pods for BPF target as well 2022-01-05 08:51:18 -08:00
c150b4b197 Replace to_elgamal_ciphertext with From trait for ElGamalCiphertext 2022-01-05 08:51:18 -08:00
a40e7fc59b Rename Pedersen related structs and methods for consistency 2022-01-05 08:51:18 -08:00
17cda46531 Merge transfer instructions 2022-01-05 08:51:18 -08:00
42f7c0c7f6 Update tests 2022-01-05 08:51:18 -08:00
20bce10204 add clippy 2022-01-05 08:51:18 -08:00
9b73e351aa minor name change 2022-01-05 08:51:18 -08:00
d6a808f41a simplify get_ciphertext methods 2022-01-05 08:51:18 -08:00
93f2323e52 add ciphertext extraction methods for TransferData 2022-01-05 08:51:18 -08:00
75896958b6 rename to_elgamal_ctxt to to_elgamal_ciphertext 2022-01-05 08:51:18 -08:00
a622ee4b8d Rename ElGamal::keygen to ElGamal::new 2022-01-05 08:51:18 -08:00
94a96670e8 Update lib.rs 2022-01-05 08:51:18 -08:00
8bb6f0dc6f Rename ElGamalSK to ElGamalSecretKey 2022-01-05 08:51:18 -08:00
5445e13828 Rename dlog.rs to discrete_log.rs 2022-01-05 08:51:18 -08:00
23d3b540a1 Avoid explicit curve25519_dalek dependency in demo/ 2022-01-05 08:51:18 -08:00
1ef3a621a8 add decryption in demo 2022-01-05 08:51:18 -08:00
d20d03cd7f clean up ElGamal decryption 2022-01-05 08:51:18 -08:00
409b55ad81 add some comments 2022-01-05 08:51:18 -08:00
667e72144e rename encode.rs to dlog.rs 2022-01-05 08:51:18 -08:00
2f138ecb96 Fix tests 2022-01-05 08:51:18 -08:00
48047b55ba clippy 2022-01-05 08:51:18 -08:00
f227504ea7 Add sol_zk_token_elgamal syscall declarations 2022-01-05 08:51:18 -08:00
78799640ea Rename ElGamalCT to ElGamalCiphertext, ElGamalPK to ElGamalPubkey 2022-01-05 08:51:18 -08:00
f3e7e62813 Refactor sdk/src/pod.rs 2022-01-05 08:51:18 -08:00
d01d425e4b Rename crypto crate to sdk 2022-01-05 08:51:18 -08:00
7da620f0b4 Merge sdk/ back into crypto/ 2022-01-05 08:51:18 -08:00
88b71c0732 Add demo cli 2022-01-05 08:51:18 -08:00
df521bbfc8 Adjust crate names 2022-01-05 08:51:18 -08:00
03a3a501f3 Groom Cargo.tomls 2022-01-05 08:51:18 -08:00
ae5d254e73 Move solana-specific parts of crypto/ into sdk/ 2022-01-05 08:51:18 -08:00
0e1afcbb26 Split up local cluster tests into separate CI steps (#22295)
* Split up local cluster tests into separate CI steps

* Update buildkite-pipeline.sh
2022-01-05 14:44:15 +00:00
44d61465f1 (Ledger store benchmark - 3/N) Add comments about the benchmark and its arguments (#22160)
* Avoid shred generation in ledger_cleanup.rs

* Update comment for test_ledger_cleanup_compaction to include benchmark information.
2022-01-04 23:35:55 -10:00
9f63493789 Refactor: Remove KeyedAccounts (2) (#22274)
* Adds InstructionContext::get_signers().
Improves error messages when modifying borrowed accounts.

* Removes keyed_accounts from InvokeContext tests.

* Removes keyed_accounts from message_processor.rs

* Removes keyed_accounts from bank.rs

* Removes keyed_accounts from bpf serialization.
2022-01-05 09:39:37 +01:00