()
| 91 | } |
| 92 | |
| 93 | func (c *Claim) buildProofAugTree() { |
| 94 | sort.Sort(c.shares) |
| 95 | c.pamt = mtree.NewAugTree() |
| 96 | c.pamt.RegisterIndex(uint32(c.shareIndex.Int64())) |
| 97 | for i, s := range c.shares { |
| 98 | c.pamt.Insert(s, uint32(i)) |
| 99 | } |
| 100 | c.pamt.Finalize() |
| 101 | } |
| 102 | |
| 103 | func (c *Claim) buildAugTree() { |
| 104 | sort.Sort(c.shares) |
no test coverage detected