solana-with-rpc-optimizations/zk-token-sdk/src
samkim-crypto b11d41a3f7
[zk-token-sdk] Use checked arithmetic when processing transfer amount (#34130)
* add `try_split_u64`

* add `try_combine_lo_hi_u64`

* add `try` variants of ciphertext arithmetic functions

* use try functions in proof generaiton and verification logic

* deprecate non-`try` functions

* use try functions in proof generaiton and verification logic

* Apply suggestions from code review

Co-authored-by: Jon C <me@jonc.dev>

* cargo fmt

---------

Co-authored-by: Jon C <me@jonc.dev>
2024-01-24 22:27:03 +09:00
..
curve25519
encryption
instruction [zk-token-sdk] Use checked arithmetic when processing transfer amount (#34130) 2024-01-24 22:27:03 +09:00
range_proof
sigma_proofs
zk_token_elgamal [zk-token-sdk] Use checked arithmetic when processing transfer amount (#34130) 2024-01-24 22:27:03 +09:00
errors.rs [zk-token-sdk] Use checked arithmetic when processing transfer amount (#34130) 2024-01-24 22:27:03 +09:00
lib.rs
macros.rs
transcript.rs
zk_token_proof_instruction.rs
zk_token_proof_program.rs
zk_token_proof_state.rs