We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Why merkle tree can't be from 1 node?
go-merkletree/merkle_tree.go
Line 104 in ccfc3d2
Even if there's just one mode, we still can compute 1 node merkle tree. What is the standard solution?
The text was updated successfully, but these errors were encountered:
Hi! Thanks for using the library and providing feedbacks.
From the Bitcoin source code of Merkle Tree and this GitHub issue, seems like the standard solution is to make the solo node the root of the tree.
I thought it was meaningless and lack of use cases to construct a Merkle Tree with only one leaf so I enforced the number of leaves to be at least 2.
Sorry, something went wrong.
No branches or pull requests
Why merkle tree can't be from 1 node?
go-merkletree/merkle_tree.go
Line 104 in ccfc3d2
Even if there's just one mode, we still can compute 1 node merkle tree.
What is the standard solution?
The text was updated successfully, but these errors were encountered: