minor fix jolt report doc

This commit is contained in:
tanmoy
2024-11-20 19:12:50 +06:00
parent 98c0b239f6
commit 26fc176a56

View File

@@ -189,18 +189,8 @@ Trace length: 2800285
zsh: killed cargo run --release
```
use sha2::{Sha256, Digest};
#[jolt::provable]
fn sha2(input: &[u8]) -> [u8; 32] {
let mut hasher = Sha256::new();
hasher.update(input);
let result = hasher.finalize();
Into::<[u8; 32]>::into(result)
}
### SHA256
```
```rust
fn sha2(input: &[u8]) -> [u8; 32] {
let mut hasher = Sha256::new();
hasher.update(input);