Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAddress ¶
type IAddress interface {
IAddressHandle
TxoCount() (int64, error) // May return a "not supported" error
NthTxo(n int64) (ITxoHandle, error) // May return a "not supported" error
}
type IAddressHandle ¶
type IAddressHandle interface {
Height() int64
Hash() indexedhashes.Sha256
HeightSpecified() bool
HashSpecified() bool
}
type IBlock ¶
type IBlock interface {
IBlockHandle
TransactionCount() (int64, error)
NthTransaction(n int64) (ITransHandle, error)
NonEssentialInts() (*map[string]int64, 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)
AddressInterface(IAddressHandle) (IAddress, error)
}
type IHandleCreator ¶
type IHandleCreator interface {
BlockHandleByHeight(blockHeight int64) (IBlockHandle, error)
TransactionHandleByHeight(transactionHeight int64) (ITransHandle, error)
TxiHandleByHeight(txiHeight int64) (ITxiHandle, error)
TxoHandleByHeight(txoHeight int64) (ITxoHandle, error)
}
IHandleCreator may supply handles, but this doesn't imply existence of the underlying object
type ITransHandle ¶
type ITransaction ¶
type ITransaction interface {
ITransHandle
TxiCount() (int64, error)
NthTxi(n int64) (ITxiHandle, error)
TxoCount() (int64, error)
NthTxo(n int64) (ITxoHandle, error)
NonEssentialInts() (*map[string]int64, error)
}
type ITxi ¶
type ITxi interface {
ITxiHandle
SourceTxo() (ITxoHandle, error)
}
type ITxiHandle ¶
type ITxo ¶
type ITxo interface {
ITxoHandle
Satoshis() (int64, error)
Address() (IAddressHandle, error)
}
Click to show internal directories.
Click to hide internal directories.