From b4841b1479bf6be5958a850083052badc4c027fa Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Mon, 14 Apr 2025 13:23:49 +0300 Subject: feat(guests/keccak): Add SP1 and RISC0 precompile usage --- guests/keccak/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'guests/keccak/Cargo.toml') diff --git a/guests/keccak/Cargo.toml b/guests/keccak/Cargo.toml index beaa70e..aaf3d2a 100644 --- a/guests/keccak/Cargo.toml +++ b/guests/keccak/Cargo.toml @@ -8,11 +8,14 @@ guests_macro = { version = "0.1.0", path = "../../guests_macro" } sha3 = { version = "0.10.8", default-features = false } zkm-runtime = { git = "https://github.com/zkMIPS/zkm.git", optional = true } # patched by the guest wrapper +sha3-sp1 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha3", tag = "patch-sha3-0.10.8-sp1-4.0.0", optional = true } +sha3-risc0 = { git = "https://github.com/risc0/RustCrypto-hashes", package = "sha3", tag = "sha3-v0.10.6", optional = true } + [features] no_std = [] jolt = [] nexus = [] -risc0 = [] -sp1 = [] +risc0 = ["sha3-risc0"] +sp1 = ["sha3-sp1"] zkm = ["zkm-runtime"] zkwasm = [] -- cgit v1.2.3