solana/zk-token-sdk/src
samkim-crypto 683e1071f7 [zk-token-sdk] Implement `FromStr` for `ElGamalPubkey`, `ElGamalCiphertext`, and `AeCiphertext` (#130)
* add `ParseError` in `zk-token-elgamal`

* implement `FromStr` for `ElGamalPubkey` and `ElGamalCiphertext`

* implement `FromStr` for `AeCiphertext`

* fix target

* cargo fmt

* use constants for byte length check

* make `FromStr` functions available on chain

* use macros for the `FromStr` implementations

* restrict `from_str` macro to `pub(crate)`

* decode directly into array

* cargo fmt

* Apply suggestions from code review

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

* remove unnecessary imports

* remove the need for `ParseError` dependency

---------

Co-authored-by: Jon C <me@jonc.dev>
2024-03-15 22:25:14 -05:00
..
curve25519
encryption Fix a number of typos (#34385) 2023-12-12 15:27:29 -05:00
instruction [zk-token-sdk] Use checked arithmetic when processing transfer amount (#34130) 2024-01-24 22:27:03 +09:00
range_proof [zk-token-sdk] Add range proof generation error types (#34065) 2023-11-22 06:50:24 +09:00
sigma_proofs [docs] updated readme and fix links (#34565) 2024-01-03 09:06:06 -05:00
zk_token_elgamal [zk-token-sdk] Implement `FromStr` for `ElGamalPubkey`, `ElGamalCiphertext`, and `AeCiphertext` (#130) 2024-03-15 22:25:14 -05:00
errors.rs [zk-token-sdk] Use checked arithmetic when processing transfer amount (#34130) 2024-01-24 22:27:03 +09:00
lib.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
macros.rs [zk-token-sdk] Re-organize error types (#34034) 2023-11-17 07:00:47 +09:00
transcript.rs [zk-token-sdk] Update transcript functions to use full names (#32095) 2023-06-13 14:52:15 +09:00
zk_token_proof_instruction.rs [zk-token-proof] Add functionality to read proof from accounts instead of instruction data (#34750) 2024-01-13 08:15:44 +09:00
zk_token_proof_program.rs [docs] updated readme and fix links (#34565) 2024-01-03 09:06:06 -05:00
zk_token_proof_state.rs [zk-token-sdk] Add option to create proof context state in the proof verification program (#29996) 2023-03-16 07:35:20 +09:00