Crate ckb_script

Source
Expand description

CKB component to run the type/lock scripts.

Re-exports§

pub use crate::types::ChunkCommand;
pub use crate::types::DataLocation;
pub use crate::types::DataPieceId;
pub use crate::types::RunMode;
pub use crate::types::ScriptGroup;
pub use crate::types::ScriptGroupType;
pub use crate::types::ScriptVersion;
pub use crate::types::TransactionState;
pub use crate::types::TxData;
pub use crate::types::VerifyResult;
pub use crate::types::VmArgs;
pub use crate::types::VmIsa;
pub use crate::types::VmState;
pub use crate::types::VmVersion;

Modules§

cost_model
CKB VM cost model.
types
Common type definitions for ckb-script package.

Structs§

Scheduler
A single Scheduler instance is used to verify a single script within a CKB transaction.
TransactionScriptError
Script execution error with the error source information.
TransactionScriptsVerifier
This struct leverages CKB VM to verify transaction inputs.
TxVerifyEnv
The environment that transactions are in.

Enums§

ScriptError
Script execution error.

Constants§

ROOT_VM_ID
Root process’s id.

Functions§

generate_ckb_syscalls
Generate RISC-V syscalls in CKB environment