#virtual-machine #fault #proof #programs #io #system-interface #fpvm

kona-common

Common traits and system interfaces for developing client programs on top of Fault Proof VMs

6 releases

new 0.1.0 Nov 20, 2024
0.0.5 Nov 20, 2024
0.0.4 Oct 25, 2024
0.0.3 Sep 4, 2024
0.0.1 Feb 22, 2024

#183 in Memory management

Download history 1/week @ 2024-08-02 3/week @ 2024-08-09 11/week @ 2024-08-16 10/week @ 2024-08-23 129/week @ 2024-08-30 53/week @ 2024-09-06 41/week @ 2024-09-13 42/week @ 2024-09-20 38/week @ 2024-09-27 47/week @ 2024-10-04 25/week @ 2024-10-11 17/week @ 2024-10-18 144/week @ 2024-10-25 35/week @ 2024-11-01 12/week @ 2024-11-08 109/week @ 2024-11-15

301 downloads per month
Used in kona-common-proc

MIT license

27KB
452 lines

kona-common

This library offers utilities for developing verifiable client executables that may run on top of Fault Proof Virtual Machine targets.

  • The 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.
  • The 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.

Dependencies

~330–780KB
~18K SLoC