diff --git a/Justfile b/Justfile new file mode 100644 index 000000000..3f0da8543 --- /dev/null +++ b/Justfile @@ -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 diff --git a/crates/host/Cargo.toml b/crates/host/Cargo.toml index 9311d9d05..620b51d19 100644 --- a/crates/host/Cargo.toml +++ b/crates/host/Cargo.toml @@ -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" diff --git a/crates/specs/src/args.rs b/crates/specs/src/args.rs index aed5764db..283250977 100644 --- a/crates/specs/src/args.rs +++ b/crates/specs/src/args.rs @@ -49,7 +49,7 @@ pub fn parse_args(values: Vec<&str>) -> Vec { let mut data = [0u8; 8]; data[..x.len()].copy_from_slice(x); - u64::from_be_bytes(data) + u64::from_le_bytes(data) }) .collect() } diff --git a/crates/zkwasm/Cargo.toml b/crates/zkwasm/Cargo.toml index 2f79adb85..fcc7a6960 100644 --- a/crates/zkwasm/Cargo.toml +++ b/crates/zkwasm/Cargo.toml @@ -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"