Structs§
- Block
- A single Block
- Block
Hash - A type for a Block hash.
- Block
Index - A block index that is tied to a specific
ChainstateManager
. - Block
Undo - The undo data of a block is used internally during re-orgs. It holds the previous transaction outputs of a block’s transactions. This data may be useful for building indexes.
- Chain
Params - The chain parameters with which to configure a
Context
. - Chainstate
Manager - The chainstate manager is the central object for doing validation tasks as well as retrieving data from the chain. Internally it is a complex data structure with diverse functionality.
- Chainstate
Manager Options - Holds the configuration options for creating a new
ChainstateManager
- Context
- The main context struct. This should be setup through the
ContextBuilder
and has to be kept in memory for the duration of context-dependent library operations. - Context
Builder - Builder struct for the kernel
Context
. - Kernel
Notification Interface Callbacks - A callback holder struct for the notification interface calls.
- Logger
- The logger object logs kernel log messages into a user-defined log function. Messages logged by the kernel before this object is created are buffered in a 1MB buffer. The kernel library internally uses a global logging instance.
- Script
Pubkey - A single script pubkey
- Transaction
- A single transaction.
- TxOut
- A single transaction output.
- Unowned
Block - A single unowned block. Can only be used for copying data from it.
- Validation
Interface Callbacks - A holder struct for validation interface callbacks
Enums§
- Block
Validation Result - A granular reason why a block was invalid.
- Chain
Type - The ChainType used to configure the kernel
Context
. - Kernel
Error - A collection of errors emitted by this library
- Kernel
Warning - Warning state emitted by the kernel warning notification.
- Script
Verify Error - A collection of errors that may occur during script verification
- Synchronization
State - The current synch state, i.e. whether in reindex, ibd, or complete. Emitted by the block tip notification.
- Validation
Mode - Whether a validated data structure is valid, invalid, or an error was encountered during processing.
Constants§
- VERIFY_
ALL_ PRE_ TAPROOT - VERIFY_
CHECKLOCKTIMEVERIFY - VERIFY_
CHECKSEQUENCEVERIFY - VERIFY_
DERSIG - VERIFY_
NONE - VERIFY_
NULLDUMMY - VERIFY_
P2SH - VERIFY_
TAPROOT - VERIFY_
WITNESS
Traits§
- Block
Checked - Exposes the result after validating a block.
- Block
Tip - The chain’s tip was updated to the provided block hash.
- Fatal
Error - An un-recoverable system error was encountered by the library.
- Flush
Error - An error was encountered when flushing data to disk.
- Header
Tip - A new best block header was added.
- Log
- A function for handling log messages produced by the kernel library.
- Progress
- Reports on the current synchronization progress.
- Warning
Set - A warning state issued by the kernel during validation.
- Warning
Unset - A previous condition leading to the issuance of a warning is no longer given.
Functions§
- disable_
logging - Permanently disable logging and stop buffering.
- verify
- Verifies a transaction input against its corresponding output script.