(suffix []byte, assetVersion uint64)
| 141 | } |
| 142 | |
| 143 | func (sc *SpendCommitment) Hash(suffix []byte, assetVersion uint64) (spendhash bc.Hash) { |
| 144 | h := sha3pool.Get256() |
| 145 | defer sha3pool.Put256(h) |
| 146 | sc.writeExtensibleString(h, suffix, assetVersion) // TODO(oleg): get rid of this assetVersion parameter to actually write all the bytes |
| 147 | spendhash.ReadFrom(h) |
| 148 | return spendhash |
| 149 | } |