Crates.io | kona-common |
lib.rs | kona-common |
version | 0.1.0 |
source | src |
created_at | 2024-02-22 16:39:23.446063 |
updated_at | 2024-11-20 19:50:01.826371 |
description | Common traits and system interfaces for developing client programs on top of Fault Proof VMs. |
homepage | https://github.com/anton-rs/kona |
repository | https://github.com/anton-rs/kona |
max_upload_size | |
id | 1149495 |
size | 28,864 |
kona-common
This library offers utilities for developing verifiable client
executables that may run on top of Fault Proof Virtual
Machine targets.
alloc_heap
macro allows for statically allocating a heap of a certain size, and all client
programs will need
to run it if they require heap allocation. The alloc
crate can be used for programs targeting any FPVM, but is
optional.io
module provides a high-level safe interface over the read
, write
, and exit
syscalls on all available
FPVM targets. While the FPVMs support a larger set of Linux syscalls, this crate looks to support the bare-minimum
required for client
programs to communicate back and forth with the host and exit properly. If a consumer of the
library would like to extend the functionality of the ClientIO
, an extension trait can be made for the ClientIO
type in the io
module.