solana-with-rpc-optimizations/zk-token-sdk/src/encryption
samkim-crypto 91186d3860
[zk-token-sdk] replace hard-coded constants with constant variables (#32274)
* add ristretto and scalar byte length constants

* add serialization and deserialization helper functions

* remove hard-coded constants in the `sigma` module

* remove hard-coded constants in the `encryption` module

* remove hard-coded constants in the `zk-token-elgamal` module

* Apply suggestions from code review

Co-authored-by: Tyera <tyera@solana.com>

* fix docs for range proof constants

* Apply suggestions from code review

Co-authored-by: Tyera <tyera@solana.com>

* clippy

---------

Co-authored-by: Tyera <tyera@solana.com>
2023-06-29 07:03:26 +09:00
..
auth_encryption.rs [zk-token-sdk] replace hard-coded constants with constant variables (#32274) 2023-06-29 07:03:26 +09:00
decode_u32_precomputation_for_G.bincode Zk token sdk/batch discrete log (#27412) 2022-08-27 06:54:59 +09:00
discrete_log.rs [zk-token-sdk] replace hard-coded constants with constant variables (#32274) 2023-06-29 07:03:26 +09:00
elgamal.rs [zk-token-sdk] replace hard-coded constants with constant variables (#32274) 2023-06-29 07:03:26 +09:00
grouped_elgamal.rs [zk-token-sdk] replace hard-coded constants with constant variables (#32274) 2023-06-29 07:03:26 +09:00
mod.rs [zk-token-sdk] Add `GroupedElGamalCiphertext` type (#31849) 2023-05-31 10:01:44 +09:00
pedersen.rs [zk-token-sdk] replace hard-coded constants with constant variables (#32274) 2023-06-29 07:03:26 +09:00