From a30b4022fa85320806b8b4d004ea713b68df6566 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Thu, 27 Mar 2025 13:25:05 +0200 Subject: feat(zkvms/risc0): Implement elf encoding Recently, RISC0 have added code to their SDK which adds magic bytes to the (already compiled) ELF. Since we're taking another route than intended, we'll need to replicate this step too. We're doing things in a different fashion, because their SDK normally compiles the guest, and doesn't allow you to supply a prebuilt ELF. --- zkvms/risc0/guest/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'zkvms/risc0/guest') diff --git a/zkvms/risc0/guest/Cargo.toml b/zkvms/risc0/guest/Cargo.toml index 8a12a8c..a5a61f2 100644 --- a/zkvms/risc0/guest/Cargo.toml +++ b/zkvms/risc0/guest/Cargo.toml @@ -11,5 +11,8 @@ risc0-zkvm = { path = "/nix/store/6992z4qxba51p1m9vjbjvcwh16gvdp56-risc0-unstabl wrapper_macro = { version = "0.1.0", path = "../wrapper_macro" } +# Not used, but needed for Nix to handle dependencies +guest-elf-patch-risc0 = { path = "../guest_elf_patch" } + # The zkp dependency references a chosen guest in guests. It is included # (inserted here) by Nix. See zkvmLib.nix -- cgit v1.2.3