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

Method HashBranch

protocol/claim.go:86–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (c *Claim) HashBranch() []*big.Int {
87 if c.pamt == nil {
88 c.buildProofAugTree()
89 }
90 return c.pamt.HashBranchArray()
91}
92
93func (c *Claim) buildProofAugTree() {
94 sort.Sort(c.shares)

Callers

nothing calls this directly

Implementers 2

Claimprotocol/claim.go
testClaimprotocol/test_claim.go

Calls 2

buildProofAugTreeMethod · 0.95
HashBranchArrayMethod · 0.80

Tested by

no test coverage detected