Add note commitment tree Position type

This commit is contained in:
Deirdre Connolly 2020-07-28 02:27:02 -04:00 committed by Deirdre Connolly
parent 65f8f2c613
commit eb731a6e2f
1 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,12 @@ use proptest_derive::Arbitrary;
use crate::serialization::{SerializationError, ZcashDeserialize, ZcashSerialize};
/// The index of a notes commitment at the leafmost layer of its Note
/// Commitment Tree.
///
/// https://zips.z.cash/protocol/protocol.pdf#merkletree
pub struct Position(pub(crate) u64);
// XXX: Depending on if we implement SproutNoteCommitmentTree or
// similar, it may be worth it to define a NoteCommitmentTree trait.