Protobuf CKB Syscalls
A Rust library that provides Protocol Buffer format definitions and implementations for CKB syscalls, enabling serialization, replay, and analysis of CKB smart contract syscall interactions.
Overview
The protobuf-ckb-syscalls library offers a standardized way to capture, serialize, and replay CKB VM syscall traces using Protocol Buffers.
The library defines several key message types in traces.proto.
Usage
Basic Syscall Implementation
use ProtobufImpls;
use SyscallImpls;
// Load syscalls from protobuf data
let impls = new_with_bytes
.expect;
// Use with CKB syscalls
let result = impls.load_cell;
VM Runner Integration
use ProtobufVmRunnerImpls;
use DefaultMachine;
// Create VM runner with protobuf syscalls.
let runner = new_with_bytes
.expect;
// Use with fuzzing or testing frameworks.
License
This project is licensed under the MIT License - see the LICENSE file for details.