GetRoot returns the root of merkle tree.
()
| 73 | |
| 74 | // GetRoot returns the root of merkle tree. |
| 75 | func (merkle *Merkle) GetRoot() *hash.Hash { |
| 76 | return merkle.tree[len(merkle.tree)-1] |
| 77 | } |
| 78 | |
| 79 | // MergeTwoHash computes the hash of the concatenate of two hash. |
| 80 | func MergeTwoHash(l *hash.Hash, r *hash.Hash) *hash.Hash { |
no outgoing calls