(suffix []byte, assetVersion uint64)
| 71 | } |
| 72 | |
| 73 | func (oc *OutputCommitment) Hash(suffix []byte, assetVersion uint64) (outputhash bc.Hash) { |
| 74 | h := sha3pool.Get256() |
| 75 | defer sha3pool.Put256(h) |
| 76 | oc.writeExtensibleString(h, suffix, assetVersion) // TODO(oleg): get rid of this assetVersion parameter to actually write all the bytes |
| 77 | outputhash.ReadFrom(h) |
| 78 | return outputhash |
| 79 | } |
nothing calls this directly
no test coverage detected