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

Method writeForHash

protocol/bc/output.go:12–17  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

10
11func (Output) typ() string { return "output1" }
12func (o *Output) writeForHash(w io.Writer) {
13 mustWriteForHash(w, o.Source)
14 mustWriteForHash(w, o.ControlProgram)
15 mustWriteForHash(w, o.Data)
16 mustWriteForHash(w, o.ExtHash)
17}
18
19// NewOutput creates a new Output.
20func NewOutput(source *ValueSource, controlProgram *Program, data *Hash, ordinal uint64) *Output {

Callers

nothing calls this directly

Calls 1

mustWriteForHashFunction · 0.85

Tested by

no test coverage detected