mirror of
https://github.com/babybear-labs/benchmark.git
synced 2026-05-01 03:00:33 -04:00
minor fix jolt report doc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user