()
| 143 | } |
| 144 | |
| 145 | func (s *Share) DAGElementArray() []*big.Int { |
| 146 | if s.dt == nil { |
| 147 | s.buildDagTree() |
| 148 | } |
| 149 | result := []*big.Int{} |
| 150 | for _, w := range s.dt.AllDAGElements() { |
| 151 | result = append(result, w.ToUint256Array()...) |
| 152 | } |
| 153 | return result |
| 154 | } |
| 155 | |
| 156 | func (s *Share) DAGProofArray() []*big.Int { |
| 157 | if s.dt == nil { |
no test coverage detected