safe_zk_token_sdk/
lib.rs

1#![allow(clippy::integer_arithmetic, clippy::op_ref)]
2
3// The warning `clippy::op_ref` is disabled to allow efficient operator arithmetic of structs that
4// implement the `Copy` trait.
5//
6// ```
7// let opening_0: PedersenOpening = PedersenOpening::new_rand();
8// let opening_1: PedersenOpening = PedersenOpening::new_rand();
9//
10// // since PedersenOpening implement `Copy`, `opening_0` and `opening_1` will be copied as
11// // parameters before `opening_sum` is computed.
12// let opening_sum = opening_0 + opening_1;
13//
14// // if passed in as references, the extra copies will not occur
15// let opening_sum = &opening_0 + &opening_1;
16// ```
17//
18// `clippy::op_ref` is turned off to prevent clippy from warning that this is not idiomatic code.
19
20#[cfg(not(target_os = "solana"))]
21#[macro_use]
22pub(crate) mod macros;
23#[cfg(not(target_os = "solana"))]
24pub mod encryption;
25#[cfg(not(target_os = "solana"))]
26pub mod errors;
27#[cfg(not(target_os = "solana"))]
28mod range_proof;
29#[cfg(not(target_os = "solana"))]
30mod sigma_proofs;
31#[cfg(not(target_os = "solana"))]
32mod transcript;
33
34// TODO: re-organize visibility
35pub mod curve25519;
36pub mod instruction;
37pub mod zk_token_elgamal;
38pub mod zk_token_proof_instruction;
39pub mod zk_token_proof_program;