coordinate

package
v0.8.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2017 License: GPL-3.0 Imports: 1 Imported by: 0

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) Bytes

func (cc ChainCoordinate) Bytes() []byte

Bytes return []byte

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL