#![cfg_attr(feature = "no_std", no_std)] #[cfg(feature = "no_std")] extern crate alloc; #[cfg(feature = "no_std")] use alloc::vec::Vec; use sha2::{Digest, Sha256}; #[guests_macro::proving_entrypoint] pub fn main(secret: Vec, hash: Vec) -> bool { let mut hasher = Sha256::new(); hasher.update(secret); let result = hasher.finalize(); let output: [u8; 32] = result.into(); output.to_vec() == hash }