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

Method writeForHash

protocol/bc/spend.go:11–15  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

9
10func (Spend) typ() string { return "spend1" }
11func (s *Spend) writeForHash(w io.Writer) {
12 mustWriteForHash(w, s.SpentOutputId)
13 mustWriteForHash(w, s.Data)
14 mustWriteForHash(w, s.ExtHash)
15}
16
17func (s *Spend) SetDestination(id *Hash, val *AssetAmount, pos uint64) {
18 s.WitnessDestination = &ValueDestination{

Callers

nothing calls this directly

Calls 1

mustWriteForHashFunction · 0.85

Tested by

no test coverage detected