Crate ckb_verification[][src]

Expand description

CKB verification

This crate implements CKB non-contextual verification by newtypes abstraction struct

Modules

cache

TX verification cache

Structs

BlockError

Errors due the fact that the block rule is not respected.

BlockTransactionsError

Errors occur during block transactions verification.

BlockVerifier

Block verifier that are independent of context.

BlockVersionError

The block version is unexpected.

ContextualTransactionVerifier

Context-dependent verification checks for transaction

GenesisVerifier

The genesis verification

HeaderError

Errors due the fact that the header rule is not respected.

HeaderVerifier

Context-dependent verification checks for block header

InvalidParentError

The block’s parent is marked as invalid.

NonContextualBlockTxsVerifier

Context-independent verification checks for block transactions

NonContextualTransactionVerifier

Context-independent verification checks for transaction

NumberError

The block number is not equal to parent number + 1. Specially genesis block number is 0.

ScriptVerifier

Perform rules verification describe in CKB script, also check cycles limit

Since

The struct define wrapper for (unsigned 64-bit integer) tx field since

TimeRelativeTransactionVerifier

The time-related TX verification

TransactionVerifier

Full tx verification checks

UnknownParentError

Cannot access the parent block to the cannonical chain.

Enums

BlockErrorKind

A list specifying categories of ckb block error.

CellbaseError

Errors due to the fact that the cellbase rule is not respected.

CommitError

Errors due to the fact that the 2pc rule is not respected.

EpochError

Errors due to the fact that the block epoch is not expected.

HeaderErrorKind

A list specifying categories of ckb header error.

PowError

Errors due to the fact that the pow rule is not respected.

SinceMetric

Metric represent value

TimestampError

Errors due to the fact that the block timestamp rule is not respected.

TransactionError

The error types to transactions.

UnclesError

Errors due to the fact that the uncle rule is not respected.

Constants

ALLOWED_FUTURE_BLOCKTIME

Maximum amount of time that a block timestamp is allowed to exceed the current time before the block will be accepted.