Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
194 changes: 110 additions & 84 deletions flake.lock

Large diffs are not rendered by default.

116 changes: 106 additions & 10 deletions guests/rsa/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion guests/rsa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ js-sys = "=0.3.72"
getrandom = { version = "0.2", features = ["js"] }

rsa-sp1 = { git = "https://github.com/sp1-patches/RustCrypto-RSA", package = "rsa", tag = "patch-0.9.6-sp1-4.0.0-v2", optional = true }
rsa-risc0 = { git = "https://github.com/risc0/RustCrypto-RSA", package = "rsa", tag = "v0.9.7-risczero.0", optional = true }

[features]
no_std = []
jolt = []
nexus = []
risc0 = []
risc0 = ["rsa-risc0"]
sp1 = ["rsa-sp1"]
zkm = []
zkwasm = []
5 changes: 4 additions & 1 deletion guests/rsa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ use sha2::{Digest, Sha256};
#[cfg(feature = "sp1")]
use rsa_sp1::{pkcs8::DecodePublicKey, Pkcs1v15Sign, RsaPublicKey};

#[cfg(not(feature = "sp1"))]
#[cfg(feature = "risc0")]
use rsa_risc0::{pkcs8::DecodePublicKey, Pkcs1v15Sign, RsaPublicKey};

#[cfg(not(any(feature = "sp1", feature = "risc0")))]
use rsa::{pkcs8::DecodePublicKey, Pkcs1v15Sign, RsaPublicKey};

#[guests_macro::proving_entrypoint]
Expand Down
Loading