Documentation ¶
Overview ¶
The common package contains types used by multiple mini-protocols
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Point ¶
The Point type represents a point on the blockchain. It consists of a slot number and block hash
func NewPointOrigin ¶
func NewPointOrigin() Point
NewPointOrigin returns an "empty" Point object which represents the origin of the blockchain
func (*Point) MarshalCBOR ¶
MarshalCBOR is a helper function for encoding a Point object to CBOR. The object content can vary, so we need to do some special handling when encoding. It is not intended to be called directly.
func (*Point) UnmarshalCBOR ¶
UnmarshalCBOR is a helper function for decoding a Point object from CBOR. The object content can vary, so we need to do some special handling when decoding. It is not intended to be called directly.