From a07b08778844ffb8529dd3831bad689f15fdb10e Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Fri, 26 Apr 2024 16:45:50 +0900 Subject: [PATCH] remove the `sigma_proofs` and `transcript` modules from sbf target --- zk-sdk/src/lib.rs | 3 ++- zk-sdk/src/sigma_proofs/mod.rs | 8 -------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/zk-sdk/src/lib.rs b/zk-sdk/src/lib.rs index d25df67c6e085d..8119c35acfc30c 100644 --- a/zk-sdk/src/lib.rs +++ b/zk-sdk/src/lib.rs @@ -21,9 +21,10 @@ #[cfg(not(target_os = "solana"))] pub mod encryption; - pub mod errors; +#[cfg(not(target_os = "solana"))] mod sigma_proofs; +#[cfg(not(target_os = "solana"))] mod transcript; /// Byte length of a compressed Ristretto point or scalar in Curve255519 diff --git a/zk-sdk/src/sigma_proofs/mod.rs b/zk-sdk/src/sigma_proofs/mod.rs index edf724c3047a94..b04516d5791d72 100644 --- a/zk-sdk/src/sigma_proofs/mod.rs +++ b/zk-sdk/src/sigma_proofs/mod.rs @@ -7,22 +7,14 @@ pub mod errors; -#[cfg(not(target_os = "solana"))] pub mod batched_grouped_ciphertext_validity; -#[cfg(not(target_os = "solana"))] pub mod ciphertext_ciphertext_equality; -#[cfg(not(target_os = "solana"))] pub mod ciphertext_commitment_equality; -#[cfg(not(target_os = "solana"))] pub mod fee; -#[cfg(not(target_os = "solana"))] pub mod grouped_ciphertext_validity; -#[cfg(not(target_os = "solana"))] pub mod pubkey; -#[cfg(not(target_os = "solana"))] pub mod zero_balance; -#[cfg(not(target_os = "solana"))] use { crate::{sigma_proofs::errors::SigmaProofVerificationError, RISTRETTO_POINT_LEN, SCALAR_LEN}, curve25519_dalek::{ristretto::CompressedRistretto, scalar::Scalar},