#fuzzing #vm #ckb #ckb-vm #test-framework

no-std ckb-vm-fuzzing-utils

CKB VM fuzzing utils

5 releases (1 stable)

Uses new Rust 2024

1.0.0 Oct 31, 2025
0.203.0 Oct 23, 2025
0.203.0-rc3 Oct 22, 2025
0.202.1 Sep 9, 2025
0.202.0 Sep 2, 2025

#37 in #ckb


Used in 3 crates

MIT license

23KB
408 lines

CKB VM Fuzzing Utils

A comprehensive fuzzing utilities library for testing and validating CKB-VM (RISC-V virtual machine) implementations. This library provides essential tools and abstractions for building robust fuzz testing frameworks for CKB smart contracts and the VM itself.

Core Components

SynchronousSyscalls<S, M>

The main syscall handler that implements all CKB system calls in a synchronous manner. It bridges the gap between the SyscallImpls trait (designed for script usage) and VM-specific requirements.

CkbvmRunnerImpls<Mac: SupportMachine>

An extension trait that augments SyscallImpls with additional VM-specific functionality, particularly for operations like load_cell_code that require direct access to VM internals.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Dependencies

~9.5MB
~189K SLoC