diff --git a/cosmwasm/enclaves/shared/cosmwasm-types/generic/src/lib.rs b/cosmwasm/enclaves/shared/cosmwasm-types/generic/src/lib.rs index 7909a3f58..1cb124183 100644 --- a/cosmwasm/enclaves/shared/cosmwasm-types/generic/src/lib.rs +++ b/cosmwasm/enclaves/shared/cosmwasm-types/generic/src/lib.rs @@ -1,7 +1,7 @@ use log::warn; use serde::{Deserialize, Serialize}; -#[cfg(feature = "random")] +//#[cfg(feature = "random")] use cw_types_v010::encoding::Binary; use cw_types_v010::types as v010types; diff --git a/cosmwasm/enclaves/shared/utils/src/key_manager.rs b/cosmwasm/enclaves/shared/utils/src/key_manager.rs index 937706d66..f98e0d0d6 100644 --- a/cosmwasm/enclaves/shared/utils/src/key_manager.rs +++ b/cosmwasm/enclaves/shared/utils/src/key_manager.rs @@ -39,9 +39,9 @@ pub struct Keychain { consensus_seed_exchange_keypair: Option>, consensus_io_exchange_keypair: Option>, consensus_callback_secret: Option>, - #[cfg(feature = "random")] + //#[cfg(feature = "random")] pub random_encryption_key: Option, - #[cfg(feature = "random")] + //#[cfg(feature = "random")] pub initial_randomness_seed: Option, registration_key: Option, admin_proof_secret: Option, @@ -198,9 +198,9 @@ impl Keychain { consensus_seed_exchange_keypair: None, consensus_io_exchange_keypair: None, consensus_callback_secret: None, - #[cfg(feature = "random")] + //#[cfg(feature = "random")] initial_randomness_seed: None, - #[cfg(feature = "random")] + //#[cfg(feature = "random")] random_encryption_key: None, admin_proof_secret: None, contract_key_proof_secret: None, @@ -529,7 +529,7 @@ impl Keychain { consensus_callback_secret_current, ); - #[cfg(feature = "random")] + //#[cfg(feature = "random")] { let rek = self.consensus_seed.unwrap().current.derive_key_from_this(