Expose note position in IncrementalMerkleWitness

This commit is contained in:
Jack Grigg 2018-07-17 10:34:48 -06:00
parent 66a519f55d
commit 70a7535ae8
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with 4 additions and 0 deletions

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());
}