Skip to content
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

Closed
wants to merge 35 commits into from
Closed

Conversation

plafer
Copy link
Contributor

@plafer plafer commented Nov 1, 2023

No description provided.

@plafer plafer changed the base branch from main to next November 1, 2023 21:17
Copy link
Contributor

@bobbinth bobbinth left a 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.

src/merkle/tiered_smt/mod.rs Outdated Show resolved Hide resolved
Comment on lines +422 to +425
pub struct TieredSmtInsertWitness {
pub partial_mt: PartialMerkleTree,
pub advice_map: BTreeMap<RpoDigest, Vec<(RpoDigest, Word)>>,
}
Copy link
Contributor

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)>>,
}

Copy link

sonarqubecloud bot commented Nov 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@plafer plafer changed the title Add preinsert_partial_merkle_tree() method to TSMT Add get_insert_witness() method to TSMT Nov 3, 2023
@bobbinth
Copy link
Contributor

Closing this as we are removing TSMT.

@bobbinth bobbinth closed this Jan 19, 2024
@bobbinth bobbinth deleted the plafer-preinsert-pmt branch February 14, 2024 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants