Registry / crypto / ckb-vm

ckb-vm

JSON →
library0.24.14rscratesunverified

CKB's Virtual machine

# Cargo.toml [dependencies] ckb-vm = "0.24.14"
INSTALL
IMPORT
SIG · CKB-VM
C
ckb-vm
cryptorustv0.24.14
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Machine
use ckb_vm::Machine;

Create and run a CKB VM instance

use ckb_vm::Machine; use ckb_vm::Bytes; fn main() { let code = Bytes::from(vec![0x00, 0x00, 0x00, 0x00]); let mut machine = Machine::new(Box::new(code), 0).unwrap(); let result = machine.run(); println!("{:?}", result); }
Debug
Known issues
gotchaRequires RISC-V instruction set knowledge
fix
Familiarize with RISC-V ISA before using
affects: >=0.1.0
Upgrade
Version history
0.24.14latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
23
Amazon
1
Resources
ckb-vm — cargo add ckb-vm · libregistry