Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zk-sdk] Hide range proof and inner product proof type fields #4338

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading