Expose note position in IncrementalMerkleWitness
This commit is contained in:
parent
66a519f55d
commit
70a7535ae8
|
@ -170,6 +170,10 @@ public:
|
||||||
return tree.last();
|
return tree.last();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t position() const {
|
||||||
|
return tree.size() - 1;
|
||||||
|
}
|
||||||
|
|
||||||
Hash root() const {
|
Hash root() const {
|
||||||
return tree.root(Depth, partial_path());
|
return tree.root(Depth, partial_path());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue