Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Crate risc0_binfmt

Source
Expand description

Manages formatted binaries used by the RISC Zero zkVM

Structs§

ByteAddr
A memory address expressed in bytes
InvalidExitCodeError
Error returned when a (system, user) exit code pair is an invalid representation.
MemoryImage
A memory image
Page
A page of memory
Program
A RISC Zero program
ProgramBinary
A container to hold a user ELF and a kernel ELF together.
ProgramBinaryHeader
A list of key-value pairs that contains information about the program.
SystemState
Represents the public state of a segment, needed for continuations and receipt verification.
WordAddr
A memory address expressed in words

Enums§

AbiKind
What kind of ABI is the program using
DecodeError
Error returned when a decoding failure occurs.
ExitCode
Exit condition indicated by the zkVM at the end of the guest execution.

Constants§

KERNEL_START_ADDR
Start address for kernel-mode memory.

Traits§

Digestible
Defines a collision resistant hash for the typed and structured data.

Functions§

compute_image_id
Compute and return the ImageID of the specified combined user ELF + kernel ELF binary.
read_sha_halfs
Read a SHA-256 digest as a series of half-wrods (i.e. 16-bit values).
tagged_iter
A list hashing routine, permitting iterative opening over elements.
tagged_list
A list hashing routine, permitting iterative opening over elements.
tagged_list_cons
Calculate the hash resulting from adding one element to a tagged_list digest.
tagged_struct
A struct hashing routine, permitting tree-like opening of fields.
write_sha_halfs
Write a SHA-256 digest as a series of half-wrods (i.e. 16-bit values).