Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBlock ¶
type IBlock interface { IBlockHandle TransactionCount() (int64, error) NthTransaction(n int64) (ITransHandle, error) }
type IBlockChain ¶
type IBlockChain interface { IBlockTree LatestBlock() (IBlockHandle, error) NextBlock(block IBlockHandle) (IBlockHandle, error) LatestTransaction() (ITransHandle, error) NextTransaction(trans ITransHandle) (ITransHandle, error) }
type IBlockHandle ¶
type IBlockTree ¶
type IBlockTree interface { InvalidBlock() IBlockHandle InvalidTrans() ITransHandle GenesisBlock() IBlockHandle ParentBlock(block IBlockHandle) IBlockHandle GenesisTransaction() (ITransHandle, error) PreviousTransaction(trans ITransHandle) ITransHandle // Todo [ ] Cannot be implemented in some cases IsBlockTree() bool BlockInterface(IBlockHandle) (IBlock, error) TransInterface(ITransHandle) (ITransaction, error) TxiInterface(ITxiHandle) (ITxi, error) TxoInterface(ITxoHandle) (ITxo, error) }
type ITransHandle ¶
type ITransaction ¶
type ITransaction interface { ITransHandle TxiCount() (int64, error) NthTxi(n int64) (ITxiHandle, error) TxoCount() (int64, error) NthTxo(n int64) (ITxoHandle, error) }
type ITxi ¶
type ITxi interface { ITxiHandle SourceTxo() (ITxoHandle, error) }
type ITxiHandle ¶
type ITxo ¶
type ITxo interface { ITxoHandle Satoshis() (int64, error) }
Click to show internal directories.
Click to hide internal directories.