Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Latest commit

 

History

History
28 lines (18 loc) · 1.13 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.13 KB

zkVM Methods

This directory contains the zkVM portion of your RISC Zero application. This is where you will define one or more guest programs to act as a coprocessor to your on-chain logic.

In typical use cases, the only code in this directory that you will need to edit is inside guest/src/bin.

Writing Guest Code

To learn to write code for the zkVM, we recommend the Hello World tutorial.

Examples of what you can do in the guest can be found in the RISC Zero examples.

From Guest Code to Binary File

Code in the methods/guest directory will be compiled into one or more binaries.

Build configuration for the methods is included in methods/build.rs.

Each will have a corresponding image ID, which is a hash identifying the program.