Crate bitcoinkernel

Source

Structs§

Block
A single Block
BlockHash
A type for a Block hash.
BlockIndex
A block index that is tied to a specific ChainstateManager.
BlockUndo
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.
ChainParams
The chain parameters with which to configure a Context.
ChainstateManager
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.
ChainstateManagerOptions
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.
ContextBuilder
Builder struct for the kernel Context.
KernelNotificationInterfaceCallbacks
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.
ScriptPubkey
A single script pubkey
Transaction
A single transaction.
TxOut
A single transaction output.
UnownedBlock
A single unowned block. Can only be used for copying data from it.
ValidationInterfaceCallbacks
A holder struct for validation interface callbacks

Enums§

BlockValidationResult
A granular reason why a block was invalid.
ChainType
The ChainType used to configure the kernel Context.
KernelError
A collection of errors emitted by this library
KernelWarning
Warning state emitted by the kernel warning notification.
ScriptVerifyError
A collection of errors that may occur during script verification
SynchronizationState
The current synch state, i.e. whether in reindex, ibd, or complete. Emitted by the block tip notification.
ValidationMode
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§

BlockChecked
Exposes the result after validating a block.
BlockTip
The chain’s tip was updated to the provided block hash.
FatalError
An un-recoverable system error was encountered by the library.
FlushError
An error was encountered when flushing data to disk.
HeaderTip
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.
WarningSet
A warning state issued by the kernel during validation.
WarningUnset
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.