cbergoon / merkletree

A Merkle Tree implementation written in Go.
MIT License
491 stars 126 forks source link

Add get merkle path proof #7

Closed adamchen0510 closed 5 years ago

adamchen0510 commented 5 years ago

Input: merkle root(some nodes calculated), hash of one node in the nodes list, path proof hashes

Others can verify the node is the nodes list.

cbergoon commented 5 years ago

Hello - Thanks for the PR.

Can you rename the function to something more representative of its functionality?Perhaps "MerklePath" or "GetMerkleProof".

I will merge after this change.

Cam

adamchen0510 commented 5 years ago

Done

cbergoon commented 5 years ago

Merged. Thanks again for the PR!

Cam