Skip to content

Commit

Permalink
[zk-sdk] Hide range proof and inner product proof type fields (#4338)
Browse files Browse the repository at this point in the history
hide range proof and inner product proof type fields
  • Loading branch information
samkim-crypto authored Jan 8, 2025
1 parent 57125d4 commit 9808a90
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions zk-sdk/src/range_proof/inner_product.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ use {
#[allow(non_snake_case)]
#[derive(Clone)]
pub struct InnerProductProof {
pub L_vec: Vec<CompressedRistretto>, // 32 * log(bit_length)
pub R_vec: Vec<CompressedRistretto>, // 32 * log(bit_length)
pub a: Scalar, // 32 bytes
pub b: Scalar, // 32 bytes
pub(crate) L_vec: Vec<CompressedRistretto>, // 32 * log(bit_length)
pub(crate) R_vec: Vec<CompressedRistretto>, // 32 * log(bit_length)
pub(crate) a: Scalar, // 32 bytes
pub(crate) b: Scalar, // 32 bytes
}

#[allow(non_snake_case)]
Expand Down
16 changes: 8 additions & 8 deletions zk-sdk/src/range_proof/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ pub const RANGE_PROOF_U256_LEN: usize =
#[cfg(not(target_os = "solana"))]
#[derive(Clone)]
pub struct RangeProof {
pub A: CompressedRistretto, // 32 bytes
pub S: CompressedRistretto, // 32 bytes
pub T_1: CompressedRistretto, // 32 bytes
pub T_2: CompressedRistretto, // 32 bytes
pub t_x: Scalar, // 32 bytes
pub t_x_blinding: Scalar, // 32 bytes
pub e_blinding: Scalar, // 32 bytes
pub ipp_proof: InnerProductProof, // 448 bytes for withdraw; 512 for transfer
pub(crate) A: CompressedRistretto, // 32 bytes
pub(crate) S: CompressedRistretto, // 32 bytes
pub(crate) T_1: CompressedRistretto, // 32 bytes
pub(crate) T_2: CompressedRistretto, // 32 bytes
pub(crate) t_x: Scalar, // 32 bytes
pub(crate) t_x_blinding: Scalar, // 32 bytes
pub(crate) e_blinding: Scalar, // 32 bytes
pub(crate) ipp_proof: InnerProductProof, // 448 bytes for withdraw; 512 for transfer
}

#[allow(non_snake_case)]
Expand Down

0 comments on commit 9808a90

Please sign in to comment.