Expose note position in IncrementalMerkleWitness

This commit is contained in:
Jack Grigg
2018-07-17 10:34:48 -06:00
parent 66a519f55d
commit 70a7535ae8

View File

@@ -170,6 +170,10 @@ public:
return tree.last();
}
uint64_t position() const {
return tree.size() - 1;
}
Hash root() const {
return tree.root(Depth, partial_path());
}