parent
45e7e78118
commit
119c7e2b6d
1 changed files with 10 additions and 0 deletions
|
@ -81,6 +81,16 @@ impl SmtProof {
|
||||||
.expect("failed to compute Merkle path root")
|
.expect("failed to compute Merkle path root")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Returns the proof's Merkle path.
|
||||||
|
pub fn path(&self) -> &MerklePath {
|
||||||
|
&self.path
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Returns the leaf associated with the proof.
|
||||||
|
pub fn leaf(&self) -> &SmtLeaf {
|
||||||
|
&self.leaf
|
||||||
|
}
|
||||||
|
|
||||||
/// Consume the proof and returns its parts.
|
/// Consume the proof and returns its parts.
|
||||||
pub fn into_parts(self) -> (MerklePath, SmtLeaf) {
|
pub fn into_parts(self) -> (MerklePath, SmtLeaf) {
|
||||||
(self.path, self.leaf)
|
(self.path, self.leaf)
|
||||||
|
|
Loading…
Add table
Reference in a new issue