Documentation ¶
Index ¶
- type VDBlock
- type VDBlockProcessor
- type VDClient
- func (v *VDClient) FetchBlockWithHash(hash []byte, blockNumber uint64) error
- func (v *VDClient) IsShutdown() bool
- func (v *VDClient) ListAllBlocksWithTx() error
- func (v *VDClient) RegisterFileHash(filePath string) error
- func (v *VDClient) RegisterHash(hash string) error
- func (v *VDClient) RegisterHashBytes(bytes []byte) error
- type VDClientConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VDBlock ¶ added in v0.1.1
type VDBlock struct {
// contains filtered or unexported fields
}
func (*VDBlock) GetBlockNumber ¶ added in v0.1.1
type VDBlockProcessor ¶
func (VDBlockProcessor) ProcessBlock ¶
func (p VDBlockProcessor) ProcessBlock(b *block.Block) error
type VDClient ¶
type VDClient struct {
// contains filtered or unexported fields
}
func (*VDClient) FetchBlockWithHash ¶ added in v0.1.1
FetchBlockWithHash is a temporary workaround for verifying registered hash values.
func (*VDClient) IsShutdown ¶
func (*VDClient) ListAllBlocksWithTx ¶
ListAllBlocksWithTx prints all non-empty blocks from genesis up to the latest block
func (*VDClient) RegisterFileHash ¶
func (*VDClient) RegisterHash ¶
func (*VDClient) RegisterHashBytes ¶
type VDClientConfig ¶
type VDClientConfig struct { // AbConf configuration parameters of Alphabill client AbConf *client.AlphabillClientConfig // WaitBlock upon hash submission, waits for a block to contain a transaction with the given hash, stops when found or timeout is reached WaitBlock bool // BlockTimeout relative timeout of a transaction (e.g. if latest block # is 100, given block timeout is 50, transaction's timeout is 150) BlockTimeout uint64 // OnBlockCallback is called if WaitBlock is set to true and block containing a transaction with the given hash is found OnBlockCallback func(b *VDBlock) }
Click to show internal directories.
Click to hide internal directories.