-
Notifications
You must be signed in to change notification settings - Fork 25
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
Refine merkle tree construction #516
Conversation
## | ||
## where HZ=H(0x0b) | ||
## | ||
## Memory layout is [H0, H1, H2, H3, H4, H5] |
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.
Also I created an issue for the pre-image attack bit: #511. You could probably close it with this PR? |
From our sync discussion:
|
@dryajov Let me know if the current data model as well as accessors are sufficient. Internally tree is stored just a MerkleTree* = object
mcodec: MultiCodec
digestSize: Natural
leavesCount: Natural
nodesBuffer: seq[byte]
proc root*(self: MerkleTree): MultiHash
proc leaves*(self: MerkleTree): seq[MultiHash] |
Moved to a different PR |
Resolves #511