-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add get_insert_witness()
method to TSMT
#211
Conversation
rpo: added conversions for digest
RPX hash function
mmr: publicly export MmrDelta
mmr: support arbitrary from/to delta updates
…r-versions mmr: support proofs with older forest versions
Bump winterfell release to .7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you! I left a couple of comments inline. Once these are done, I think we can merge.
pub struct TieredSmtInsertWitness { | ||
pub partial_mt: PartialMerkleTree, | ||
pub advice_map: BTreeMap<RpoDigest, Vec<(RpoDigest, Word)>>, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Following this comment, I wonder if instead of returning a PartialMerkleTree
we return just Vec<MerklePath>
. Then, this struct could look something like this:
pub struct TieredSmtInsertWitness {
pub paths: Vec<MerklePath>,
pub indexes: Vec<NodeIndex>,
pub leaves: BTreeMap<RpoDigest, Vec<(RpoDigest, Word)>>,
}
Kudos, SonarCloud Quality Gate passed! |
preinsert_partial_merkle_tree()
method to TSMTget_insert_witness()
method to TSMT
Closing this as we are removing TSMT. |
No description provided.