Commit Graph

17210 Commits

Author SHA1 Message Date
c59e8f7c8d resolve conflict 2022-01-05 08:51:18 -08:00
973287ad66 add decryption functionality to transfer data 2022-01-05 08:51:18 -08:00
15aea0fe47 Avoid runtime discrete log table precomputation 2022-01-05 08:51:18 -08:00
c1db2b4866 Wrap a struct around the discrete log precompute hashmap 2022-01-05 08:51:18 -08:00
425a4a4082 cargo fmt 2022-01-05 08:51:18 -08:00
fdb658fff4 Various program refinements 2022-01-05 08:51:18 -08:00
c155519ae1 Generate AesKey/ElGamalSecretKey from an ed25519 signature instead of secret key 2022-01-05 08:51:18 -08:00
221f499041 derive ElGamal keypair from the secret component of keypair 2022-01-05 08:51:18 -08:00
89ddae29ef derive ElGamal keypair from Ed25519 keypair instead of just the signing key 2022-01-05 08:51:18 -08:00
defdf8da72 change AESCiphertext to AesCiphertext 2022-01-05 08:51:18 -08:00
3721eda23e serialization for aes 2022-01-05 08:51:18 -08:00
c7fc430adb use randomized authenticated encryption for aes 2022-01-05 08:51:18 -08:00
77e79221a0 remove UpdateAccountPk instruction 2022-01-05 08:51:18 -08:00
b0e492bc06 Update sdk/src/encryption/aes.rs
Co-authored-by: Michael Vines <mvines@gmail.com>
2022-01-05 08:51:18 -08:00
173d88d514 remove OptionAESCiphertext 2022-01-05 08:51:18 -08:00
22114c523f update demo program and bpf test for aes ciphertext removal 2022-01-05 08:51:18 -08:00
88f952075d remove aes ciphertext from the proof program 2022-01-05 08:51:18 -08:00
c51a51d0ad quick syntactical fixes from pr review
merge
2022-01-05 08:51:18 -08:00
2359150b9c incorporate aes ciphertext for zk-proof instructions 2022-01-05 08:51:18 -08:00
6749c45c63 merge 2022-01-05 08:51:18 -08:00
57103c515b update applying pending balance for aes ciphertext 2022-01-05 08:51:18 -08:00
2d225de48c pod for AESCiphertext 2022-01-05 08:51:18 -08:00
beba0eac55 Some clippy 2022-01-05 08:51:18 -08:00
e0c168ef3f add aes encryption 2022-01-05 08:51:18 -08:00
72ade5473a Add blueprint for aes encryption 2022-01-05 08:51:18 -08:00
abe6b27b34 clippy 2022-01-05 08:51:18 -08:00
0ac6427abc cargo fmt 2022-01-05 08:51:18 -08:00
17f5dd734c Fix BPF build 2022-01-05 08:51:18 -08:00
a707e85c10 add key pair derivation from ed25519 signing key 2022-01-05 08:51:18 -08:00
ecbdb6ba68 update cargo to include ed25519_dalek 2022-01-05 08:51:18 -08:00
2eb326b0da add keypair derivation 2022-01-05 08:51:18 -08:00
f350fa7147 add key pair derivation from ed25519 signing key
merge
2022-01-05 08:51:18 -08:00
0cc717340c update cargo to include ed25519_dalek 2022-01-05 08:51:18 -08:00
a368adcd30 add keypair derivation
merge
2022-01-05 08:51:18 -08:00
500423626d merge 2022-01-05 08:51:18 -08:00
aea95e8ff3 update cargo to include ed25519_dalek 2022-01-05 08:51:18 -08:00
0bd28f9620 merge 2022-01-05 08:51:18 -08:00
65cf599786 merge 2022-01-05 08:51:18 -08:00
9fdadb503d merge 2022-01-05 08:51:18 -08:00
ee6a13ef6f update cargo to include ed25519_dalek 2022-01-05 08:51:18 -08:00
30702dcdee add keypair derivation 2022-01-05 08:51:18 -08:00
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