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.
| 16 | // blockchain: transaction components such as spends, issuances, |
| 17 | // outputs, and retirements (among others), plus blockheaders. |
| 18 | type 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 | |
| 29 | var errInvalidValue = errors.New("invalid value") |
| 30 |
no outgoing calls
no test coverage detected