orchard/src/tree.rs

16 lines
335 B
Rust
Raw Normal View History

2021-04-14 21:14:34 -07:00
use rand::RngCore;
2021-01-20 12:30:35 -08:00
/// The root of an Orchard commitment tree.
2021-04-14 21:14:34 -07:00
#[derive(Clone, Debug)]
pub struct Anchor(pub [u8; 32]);
2021-04-14 21:14:34 -07:00
#[derive(Debug)]
pub struct MerklePath;
impl MerklePath {
/// Generates a dummy Merkle path for use in dummy spent notes.
2021-04-28 15:57:53 -07:00
pub(crate) fn dummy(_rng: &mut impl RngCore) -> Self {
2021-04-14 21:14:34 -07:00
MerklePath
}
}