Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainCoordinate ¶
type ChainCoordinate []byte
ChainCoordinate represents the coordinate of the blockchain
func HexToChainCoordinate ¶
func HexToChainCoordinate(hex string) ChainCoordinate
HexToChainCoordinate returns chain coordinate via the hex
func NewChainCoordinate ¶
func NewChainCoordinate(c []byte) ChainCoordinate
NewChainCoordinate returns an instance of ChainCoordinate
func (ChainCoordinate) MarshalText ¶
func (cc ChainCoordinate) MarshalText() ([]byte, error)
MarshalText returns the hex representation of a.
func (ChainCoordinate) ParentCoorinate ¶
func (cc ChainCoordinate) ParentCoorinate() ChainCoordinate
ParentCoorinate returns parent coorinate
func (ChainCoordinate) String ¶
func (cc ChainCoordinate) String() string
String returns string format of chain coordinate
func (ChainCoordinate) UnmarshalText ¶
func (cc ChainCoordinate) UnmarshalText(input []byte) error
UnmarshalText parses a hash in hex syntax.
Click to show internal directories.
Click to hide internal directories.