Documentation ¶
Index ¶
- func DecodeBlockMessage(b []byte) ([]node.Node, error)
- func DecodeMaybeTx(b []byte) (node.Node, error)
- type Block
- func (b *Block) BTCSha() []byte
- func (b *Block) Cid() cid.Cid
- func (b *Block) Copy() node.Node
- func (b *Block) HexHash() string
- func (b *Block) Links() []*node.Link
- func (b *Block) Loggable() map[string]interface{}
- func (b *Block) RawData() []byte
- func (b *Block) Resolve(path []string) (interface{}, []string, error)
- func (b *Block) ResolveLink(path []string) (*node.Link, []string, error)
- func (b *Block) Size() (uint64, error)
- func (b *Block) Stat() (*node.NodeStat, error)
- func (b *Block) String() string
- func (b *Block) Tree(p string, depth int) []string
- type Link
- type Tx
- func (t *Tx) BTCSha() []byte
- func (t *Tx) Cid() cid.Cid
- func (t *Tx) Copy() node.Node
- func (t *Tx) HexHash() string
- func (t *Tx) Links() []*node.Link
- func (t *Tx) Loggable() map[string]interface{}
- func (t *Tx) RawData() []byte
- func (t *Tx) Resolve(path []string) (interface{}, []string, error)
- func (t *Tx) ResolveLink(path []string) (*node.Link, []string, error)
- func (t *Tx) Size() (uint64, error)
- func (t *Tx) Stat() (*node.NodeStat, error)
- func (t *Tx) String() string
- func (t *Tx) Tree(p string, depth int) []string
- type TxIn
- type TxOut
- type TxTree
- func (t *TxTree) BTCSha() []byte
- func (t *TxTree) Cid() cid.Cid
- func (t *TxTree) Copy() node.Node
- func (t *TxTree) Links() []*node.Link
- func (t *TxTree) Loggable() map[string]interface{}
- func (t *TxTree) MarshalJSON() ([]byte, error)
- func (t *TxTree) RawData() []byte
- func (t *TxTree) Resolve(path []string) (interface{}, []string, error)
- func (t *TxTree) ResolveLink(path []string) (*node.Link, []string, error)
- func (t *TxTree) Size() (uint64, error)
- func (t *TxTree) Stat() (*node.NodeStat, error)
- func (t *TxTree) String() string
- func (t *TxTree) Tree(p string, depth int) []string
- type Witness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { Version uint32 `json:"version"` Parent cid.Cid `json:"parent"` MerkleRoot cid.Cid `json:"tx"` Timestamp uint32 `json:"timestamp"` Difficulty uint32 `json:"difficulty"` Nonce uint32 `json:"nonce"` // contains filtered or unexported fields }
func DecodeBlock ¶
func (*Block) ResolveLink ¶
ResolveLink is a helper function that allows easier traversal of links through blocks
type Tx ¶
type TxIn ¶
Click to show internal directories.
Click to hide internal directories.