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

Method writeExtensibleString

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

Source from the content-addressed store, hash-verified

19}
20
21func (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
28func (oc *OutputCommitment) writeContents(w io.Writer, suffix []byte, assetVersion uint64) (err error) {
29 if assetVersion == 1 {

Callers 1

HashMethod · 0.95

Calls 1

writeContentsMethod · 0.95

Tested by

no test coverage detected