MCPcopy Create free account
hub / github.com/chain/Core / writeExtensibleString

Method writeExtensibleString

protocol/bc/legacy/spend.go:64–69  ·  view source on GitHub ↗
(w io.Writer, suffix []byte, assetVersion uint64)

Source from the content-addressed store, hash-verified

62}
63
64func (sc *SpendCommitment) writeExtensibleString(w io.Writer, suffix []byte, assetVersion uint64) error {
65 _, err := blockchain.WriteExtensibleString(w, suffix, func(w io.Writer) error {
66 return sc.writeContents(w, suffix, assetVersion)
67 })
68 return err
69}
70
71func (sc *SpendCommitment) writeContents(w io.Writer, suffix []byte, assetVersion uint64) (err error) {
72 if assetVersion == 1 {

Callers 3

HashMethod · 0.95
WriteInputCommitmentMethod · 0.45
WriteCommitmentMethod · 0.45

Calls 1

writeContentsMethod · 0.95

Tested by

no test coverage detected