(w io.Writer, suffix []byte, assetVersion uint64)
| 19 | } |
| 20 | |
| 21 | func (oc *OutputCommitment) writeExtensibleString(w io.Writer, suffix []byte, assetVersion uint64) error { |
| 22 | _, err := blockchain.WriteExtensibleString(w, suffix, func(w io.Writer) error { |
| 23 | return oc.writeContents(w, suffix, assetVersion) |
| 24 | }) |
| 25 | return err |
| 26 | } |
| 27 | |
| 28 | func (oc *OutputCommitment) writeContents(w io.Writer, suffix []byte, assetVersion uint64) (err error) { |
| 29 | if assetVersion == 1 { |