From 0c54fb0540591ab5ddcb4de2a2ff7fc54bd3b798 Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Mon, 14 Apr 2025 13:33:22 +0300 Subject: feat(guests/sha256): Add SP1 and RISC0 precompile usage --- guests/sha256/Cargo.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'guests/sha256/Cargo.toml') diff --git a/guests/sha256/Cargo.toml b/guests/sha256/Cargo.toml index fccbfa7..672d340 100644 --- a/guests/sha256/Cargo.toml +++ b/guests/sha256/Cargo.toml @@ -7,11 +7,14 @@ edition = "2021" guests_macro = { version = "0.1.0", path = "../../guests_macro" } sha2 = { version = "0.10.8", default-features = false } +sha2-sp1 = { git = "https://github.com/sp1-patches/RustCrypto-hashes", package = "sha2", tag = "patch-sha2-0.10.8-sp1-4.0.0", optional = true } +sha2-risc0 = { git = "https://github.com/risc0/RustCrypto-hashes", package = "sha2", tag = "sha2-v0.10.8-risczero.0", optional = true } + [features] no_std = [] jolt = [] nexus = [] -risc0 = [] -sp1 = [] +risc0 = ["sha2-risc0"] +sp1 = ["sha2-sp1"] zkm = [] zkwasm = [] -- cgit v1.2.3