solana/zk-token-sdk
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
..
src [zk-token-sdk] Use checked arithmetic when processing transfer amount (#34130) 2024-01-24 22:27:03 +09:00
.gitignore Don't accidentally commit farf (#22349) 2022-01-06 17:24:33 -07:00
Cargo.toml Bump rand to 0.8, rand_chacha to 0.3, getrandom to 0.2 (#32871) 2023-08-21 19:11:21 +02:00