Skip to content

Commit

Permalink
support host slice
Browse files Browse the repository at this point in the history
  • Loading branch information
xgaozoyoe committed Aug 15, 2024
1 parent f3f301c commit 26ea38e
Show file tree
Hide file tree
Showing 5 changed files with 180 additions and 57 deletions.
144 changes: 105 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ rayon = "1.8.0"
regex = "1.10.2"
static_assertions = "1.1.0"
wasmi = { path = "third-party/wasmi" }
zkwasm-host-circuits = { git = "https://github.com/DelphinusLab/zkWasm-host-circuits.git" }
circuits-batcher = { git = "https://github.com/DelphinusLab/continuation-batcher.git" }
zkwasm-host-circuits = { git = "https://github.com/DelphinusLab/zkWasm-host-circuits.git", branch="host-op-1.8" }
circuits-batcher = { git = "https://github.com/DelphinusLab/continuation-batcher.git", tag="on-prove-pairing-2.0" }
poseidon = { git = "https://github.com/DelphinusLab/poseidon" }

[profile.dev]
opt-level = 3

2 changes: 1 addition & 1 deletion crates/host/src/host/merkle_helper/merkle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use zkwasm_host_circuits::host::ForeignInst::MerkleSetRoot;
use zkwasm_host_circuits::host::Reduce;
use zkwasm_host_circuits::host::ReduceRule;

const MERKLE_TREE_HEIGHT: usize = 32;
use crate::MERKLE_TREE_HEIGHT;

pub struct MerkleContext {
pub k: u32,
Expand Down
Loading

0 comments on commit 26ea38e

Please sign in to comment.