Skip to content

Commit 4f88045

Browse files
committed
commit: fix rand feature gate
1 parent 760cda2 commit 4f88045

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

commit_verify/src/mpc/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ mod block;
2222

2323
pub use atoms::{Commitment, Leaf, Message, MessageMap, MultiSource, ProtocolId};
2424
pub use block::{LeafNotKnown, MerkleBlock, MerkleProof, UnrelatedProof};
25-
pub use tree::{Error, IntoIter, MerkleTree};
25+
#[cfg(feature = "rand")]
26+
pub use tree::Error;
27+
pub use tree::{IntoIter, MerkleTree};
2628

2729
const LNPBP4_TAG: [u8; 16] = *b"urn:lnpbp:lnpbp4";

commit_verify/src/mpc/tree.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use std::collections::BTreeMap;
1717
use amplify::num::{u256, u4};
1818
use amplify::Wrapper;
1919

20+
#[cfg(feature = "rand")]
2021
pub use self::commit::Error;
2122
use crate::merkle::{MerkleLeaves, MerkleNode};
2223
use crate::mpc::atoms::Leaf;

0 commit comments

Comments
 (0)