aboutsummaryrefslogtreecommitdiff
path: root/guests/sha256/src
diff options
context:
space:
mode:
Diffstat (limited to 'guests/sha256/src')
-rw-r--r--guests/sha256/src/lib.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/guests/sha256/src/lib.rs b/guests/sha256/src/lib.rs
index 1ca7f72..885f58a 100644
--- a/guests/sha256/src/lib.rs
+++ b/guests/sha256/src/lib.rs
@@ -5,6 +5,13 @@ extern crate alloc;
#[cfg(feature = "no_std")]
use alloc::vec::Vec;
+#[cfg(feature = "sp1")]
+use sha2_sp1::{Digest, Sha256};
+
+#[cfg(feature = "risc0")]
+use sha2_risc0::{Digest, Sha256};
+
+#[cfg(not(any(feature = "sp1", feature = "risc0")))]
use sha2::{Digest, Sha256};
#[guests_macro::proving_entrypoint]