()
| 128 | } |
| 129 | |
| 130 | func (mt MerkleTree) Branches() map[uint32]BranchTree { |
| 131 | if mt.finalized { |
| 132 | return *(mt.mtbuf.Front().Value.(node).Branches) |
| 133 | } |
| 134 | panic("SP Merkle tree needs to be finalized by calling mt.Finalize()") |
| 135 | } |
| 136 | |
| 137 | func (mt MerkleTree) Indices() []uint32 { |
| 138 | return mt.orderedIndexes |
no outgoing calls
no test coverage detected