solana/zk-token-sdk
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
..
src [zk-token-sdk] replace hard-coded constants with constant variables (#32274) 2023-06-29 07:03:26 +09:00
.gitignore Don't accidentally commit farf (#22349) 2022-01-06 17:24:33 -07:00
Cargo.toml [zk-token-sdk] Use `TryFrom<&[T]>` for `&[T]` instead of `arrayref` (#31959) 2023-06-21 06:14:18 +09:00