MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / RootHash

Method RootHash

mtree/dag_mt.go:63–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61}
62
63func (dt DagTree) RootHash() smartpool.SPHash {
64 if dt.finalized {
65 return smartpool.SPHash(dt.Root().(DagData))
66 }
67 panic("SP Merkle tree needs to be finalized by calling mt.Finalize()")
68}
69
70// return only one array with necessary hashes for each
71// index in order. Element's hash and root are not included

Callers 2

SetEpochDataMethod · 0.95
AugMerkleMethod · 0.45

Calls 1

RootMethod · 0.80

Tested by

no test coverage detected