From 583beac79a2f5d4471c50fff39b621c15b64bed2 Mon Sep 17 00:00:00 2001 From: samkim-crypto Date: Thu, 16 Jan 2025 21:22:15 +0900 Subject: [PATCH] [merlin, zk-sdk] Turn default-features for `merlin` crate to false (#4469) turn default-features for `merlin` crate to false --- Cargo.toml | 4 ++-- zk-sdk/src/lib.rs | 1 + zk-sdk/src/transcript.rs | 3 +-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 243862ff0915c3..21b0ab03e67610 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ inherits = "release" debug = true split-debuginfo = "packed" -lto = false # Preserve the 'thin local LTO' for this build. +lto = false # Preserve the 'thin local LTO' for this build. [profile.release] split-debuginfo = "unpacked" @@ -374,7 +374,7 @@ lru = "0.7.7" lz4 = "1.28.1" memmap2 = "0.5.10" memoffset = "0.9" -merlin = "3" +merlin = { version = "3", default-features = false } min-max-heap = "1.3.0" mockall = "0.11.4" modular-bitfield = "0.11.2" diff --git a/zk-sdk/src/lib.rs b/zk-sdk/src/lib.rs index 824a4718f14c5c..3ac812d4dfd60b 100644 --- a/zk-sdk/src/lib.rs +++ b/zk-sdk/src/lib.rs @@ -24,6 +24,7 @@ pub mod errors; pub mod pod; mod range_proof; mod sigma_proofs; +#[cfg(not(target_os = "solana"))] mod transcript; pub mod zk_elgamal_proof_program; diff --git a/zk-sdk/src/transcript.rs b/zk-sdk/src/transcript.rs index e814977869ceee..f47eb237a3f848 100644 --- a/zk-sdk/src/transcript.rs +++ b/zk-sdk/src/transcript.rs @@ -1,8 +1,7 @@ -use merlin::Transcript; -#[cfg(not(target_os = "solana"))] use { crate::errors::TranscriptError, curve25519_dalek::{ristretto::CompressedRistretto, scalar::Scalar, traits::IsIdentity}, + merlin::Transcript, }; pub trait TranscriptProtocol {