()
| 121 | } |
| 122 | |
| 123 | func (mt MerkleTree) Root() NodeData { |
| 124 | if mt.finalized { |
| 125 | return mt.mtbuf.Front().Value.(node).Data |
| 126 | } |
| 127 | panic("SP Merkle tree needs to be finalized by calling mt.Finalize()") |
| 128 | } |
| 129 | |
| 130 | func (mt MerkleTree) Branches() map[uint32]BranchTree { |
| 131 | if mt.finalized { |