Crate ckb_script

Source
Expand description

CKB component to run the type/lock scripts.

Modules§

cost_model
CKB VM cost model.

Structs§

Scheduler
A single Scheduler instance is used to verify a single script within a CKB transaction.
ScriptGroup
A script group is defined as scripts that share the same hash.
TransactionScriptError
Script execution error with the error source information.
TransactionScriptsSyscallsGenerator
Syscalls can be generated individually by TransactionScriptsSyscallsGenerator.
TransactionScriptsVerifier
This struct leverages CKB VM to verify transaction inputs.
TransactionState
Struct specifies which script has verified so far. State is lifetime free, but capture snapshot need heavy memory copy
TxData
Context data for current running transaction & script
TxVerifyEnv
The environment that transactions are in.

Enums§

ChunkCommand
ChunkCommand is used to control the verification process to suspend or resume
DataPieceId
A pointer to the data that is part of the transaction.
RunMode
The scheduler’s running mode.
ScriptError
Script execution error.
ScriptGroupType
The script group type.
ScriptVersion
The version of CKB Script Verifier.
VerifyResult
Enum represent resumable verify result
VmState
VM State.

Constants§

ROOT_VM_ID
Root process’s id.

Type Aliases§

CoreMachine
The type of core VM machine when uses ASM.
VmIsa
The type of CKB-VM ISA.
VmVersion
/// The type of CKB-VM version.