Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#cli := env_var_or_default('ZKWASM_CLI', 'zkwasm-cli-x86')

gk-dr:
cargo run -- --function zkmain --output ./output --param ./param --host host --wasm ../go-keccak256/keccak256.wasm dry-run

ghk-dr:
cargo run -- --function zkmain --output ./output --param ./param --host host --wasm ../go-host-keccak256/keccak256.wasm dry-run

rk-dr:
cargo run -- --function zkmain --output ./output --param ./param --host host --wasm ../rust-keccak256/pkg/rust-sdk-test.wasm dry-run

rhk-dr:
cargo run -- --function zkmain --output ./output --param ./param --host host --wasm ../rust-host-keccak256/pkg/rust-sdk-test.wasm dry-run

opb-dr:
cargo run -- --function zkmain --output ./output --param ./param --host host --wasm ../optimism/op-program/bin/op-program-client-test.wasm dry-run --private ~/last_op/EthStorage-Grant/preimages-test.bin:file

opl-dr:
cargo run -- --function zkmain --output ./output --param ./param --host host --wasm ../optimism/op-program/bin/op-program-client-test.wasm dry-run --private ~/last_op/EthStorage-Grant/preimages-test-little.bin:file

oplf-dr:
cargo run -- --function zkmain --output ./output --param ./param --host host --wasm ../optimism/op-program/bin/op-program-client.wasm dry-run --private ~/last_op/EthStorage-Grant/preimages-little.bin:file


go-dr:
just gk-dr
just ghk-dr

rust-dr:
just rk-dr
just rhk-dr
3 changes: 2 additions & 1 deletion crates/host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ parity-wasm.workspace = true
wasmi.workspace = true

# TODO put the host circuits into features
zkwasm-host-circuits = { git = "https://github.com/DelphinusLab/zkWasm-host-circuits.git", branch="main" }
#zkwasm-host-circuits = { git = "https://github.com/DelphinusLab/zkWasm-host-circuits.git", branch="main" }
zkwasm-host-circuits = { git = "https://github.com/JustXxx/zkWasm-host-circuits.git", branch="main" }

[dev-dependencies]
rusty-fork = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion crates/specs/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn parse_args(values: Vec<&str>) -> Vec<u64> {
let mut data = [0u8; 8];
data[..x.len()].copy_from_slice(x);

u64::from_be_bytes(data)
u64::from_le_bytes(data)
})
.collect()
}
Expand Down
3 changes: 2 additions & 1 deletion crates/zkwasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ wasmi.workspace = true

# TODO put the host circuits into features

zkwasm-host-circuits = { git = "https://github.com/DelphinusLab/zkWasm-host-circuits.git", branch="main" }
#zkwasm-host-circuits = { git = "https://github.com/DelphinusLab/zkWasm-host-circuits.git", branch="main" }
zkwasm-host-circuits = { git = "https://github.com/JustXxx/zkWasm-host-circuits.git", branch="main" }

[dev-dependencies]
rusty-fork = "0.3.0"
Expand Down