register indexes to build branches
(indexes ...uint32)
| 34 | |
| 35 | // register indexes to build branches |
| 36 | func (mt *MerkleTree) RegisterIndex(indexes ...uint32) { |
| 37 | for _, i := range indexes { |
| 38 | mt.indexes[i] = true |
| 39 | mt.orderedIndexes = append(mt.orderedIndexes, i) |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func (mt *MerkleTree) SetHashFunction(_h hashFunc) { |
| 44 | mt.h = _h |
no outgoing calls
no test coverage detected