Skip to content

Commit

Permalink
[book] fix toml in keccak section (#1098)
Browse files Browse the repository at this point in the history
* fix toml in keccak section

* add hex dep
  • Loading branch information
luffykai authored Dec 16, 2024
1 parent 1eb0058 commit 160cdac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion book/src/custom-extensions/keccak.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ See the full example [here](https://github.com/openvm-org/openvm/blob/main/crate

### Example:
```rust
use hex::FromHex;
use openvm_keccak256_guest::keccak256;

pub fn main() {
Expand All @@ -36,6 +37,7 @@ To be able to import the `keccak256` function, add the following to your `Cargo.

```toml
openvm-keccak256-guest = { git = "https://github.com/openvm-org/openvm.git" }
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
```

## Native Keccak256
Expand Down Expand Up @@ -70,5 +72,5 @@ fn keccak256(input: &[u8]) -> [u8; 32] {
For the guest program to build successfully add the following to your `.toml` file:

```toml
[app_vm_config.keccak256]
[app_vm_config.keccak]
```

0 comments on commit 160cdac

Please sign in to comment.