MCPcopy Create free account
hub / github.com/copernet/copernicus / Encode

Method Encode

model/script/script.go:231–233  ·  view source on GitHub ↗
(writer io.Writer)

Source from the content-addressed store, hash-verified

229}
230
231func (s *Script) Encode(writer io.Writer) (err error) {
232 return util.WriteVarBytes(writer, s.data)
233}
234
235func (s *Script) Decode(reader io.Reader, isCoinBase bool) (err error) {
236 bytes, err := ReadScript(reader, MaxMessagePayload, "tx input signature script")

Callers 1

SerializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected