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 initial root hash in Deep Subtree #21

Closed
Tracked by #1
Manav-Aggarwal opened this issue Dec 1, 2022 · 0 comments · Fixed by #18
Closed
Tracked by #1

Add initial root hash in Deep Subtree #21

Manav-Aggarwal opened this issue Dec 1, 2022 · 0 comments · Fixed by #18
Assignees

Comments

@Manav-Aggarwal
Copy link
Member

A Deep Subtree should be able to be initialized with an initial root hash since the root is set to nil for an empty Deep Subtree. However, if a non-nil root exists in the Deep Subtree, it should have priority over the initial root hash and the working hash of the Deep Subtree should be used as the root hash.

Add setters and getters for initial root hash along with using it in verifyOperation and buildTree.

Parent issue: #20

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 a pull request may close this issue.

1 participant