MCPcopy
hub / github.com/chain/Core / Entry

Interface Entry

protocol/bc/entry.go:18–27  ·  view source on GitHub ↗

Entry is the interface implemented by each addressable unit in a blockchain: transaction components such as spends, issuances, outputs, and retirements (among others), plus blockheaders.

Source from the content-addressed store, hash-verified

16// blockchain: transaction components such as spends, issuances,
17// outputs, and retirements (among others), plus blockheaders.
18type Entry interface {
19 proto.Message
20
21 // type produces a short human-readable string uniquely identifying
22 // the type of this entry.
23 typ() string
24
25 // writeForHash writes the entry's body for hashing.
26 writeForHash(w io.Writer)
27}
28
29var errInvalidValue = errors.New("invalid value")
30

Callers 2

EntryIDFunction · 0.65
EntryIDFunction · 0.65

Implementers 9

Nonceprotocol/bc/bc.pb.go
Issuanceprotocol/bc/bc.pb.go
Muxprotocol/bc/bc.pb.go
Outputprotocol/bc/bc.pb.go
TimeRangeprotocol/bc/bc.pb.go
TxHeaderprotocol/bc/bc.pb.go
BlockHeaderprotocol/bc/bc.pb.go
Retirementprotocol/bc/bc.pb.go
Spendprotocol/bc/bc.pb.go

Calls

no outgoing calls

Tested by

no test coverage detected