Skip to content

Commit 123895d

Browse files
authored
Version bump zk (#82)
* bump zk and improve the logs * bump * update lock
1 parent 6014b9e commit 123895d

5 files changed

Lines changed: 127 additions & 65 deletions

File tree

Cargo.lock

Lines changed: 36 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,18 @@ subxt-metadata = "0.44"
7777
# ZK proof generation (aligned with chain)
7878
anyhow = "1.0"
7979

80-
qp-wormhole-circuit = { version = "1.3.0", default-features = false, features = ["std"] }
81-
qp-wormhole-prover = { version = "1.3.0", default-features = false, features = ["std"] }
82-
qp-wormhole-verifier = { version = "1.3.0", default-features = false, features = ["std"] }
83-
qp-wormhole-aggregator = { version = "1.3.0", default-features = false, features = ["rayon", "std"] }
84-
qp-wormhole-inputs = { version = "1.3.0", default-features = false, features = ["std"] }
85-
qp-zk-circuits-common = { version = "1.3.0", default-features = false, features = ["std"] }
86-
qp-plonky2 = { version = "1.1.6", default-features = false, features = ["rand", "std"] }
87-
qp-wormhole-circuit-builder = { version = "1.3.0" }
80+
qp-plonky2 = { version = "1.4.0", default-features = false, features = ["rand", "std"] }
81+
qp-wormhole-circuit = { version = "1.4.0", default-features = false, features = ["std"] }
82+
qp-wormhole-prover = { version = "1.4.0", default-features = false, features = ["std"] }
83+
qp-wormhole-verifier = { version = "1.4.0", default-features = false, features = ["std"] }
84+
qp-wormhole-aggregator = { version = "1.4.0", default-features = false, features = ["rayon", "std"] }
85+
qp-wormhole-inputs = { version = "1.4.0", default-features = false, features = ["std"] }
86+
qp-zk-circuits-common = { version = "1.4.0", default-features = false, features = ["std"] }
87+
qp-wormhole-circuit-builder = { version = "1.4.0" }
8888

8989

9090
[build-dependencies]
91-
qp-wormhole-circuit-builder = { version = "1.3.0" }
91+
qp-wormhole-circuit-builder = { version = "1.4.0" }
9292

9393
[dev-dependencies]
9494
tempfile = "3.8.1"

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ fn main() {
2222
.parse()
2323
.expect("QP_NUM_LEAF_PROOFS must be a valid usize");
2424

25-
println!("cargo:rerun-if-changed=build.rs");
25+
// Don't emit any rerun-if-changed directives - this forces the build script
26+
// to run on every build. Circuit generation is fast enough in release mode.
2627

2728
println!(
2829
"cargo:warning=[quantus-cli] Generating ZK circuit binaries (num_leaf_proofs={})...",

src/cli/address_format.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,15 @@ impl QuantusSS58 for subxt::ext::subxt_core::utils::AccountId32 {
2929
sp_account_id.to_ss58check_with_version(quantus_ss58_format())
3030
}
3131
}
32+
33+
/// Convert raw 32-byte account to Quantus SS58 format
34+
pub fn bytes_to_quantus_ss58(bytes: &[u8; 32]) -> String {
35+
let sp_account_id = sp_core::crypto::AccountId32::from(*bytes);
36+
sp_account_id.to_ss58check_with_version(quantus_ss58_format())
37+
}
38+
39+
/// Convert a byte slice to Quantus SS58 format (panics if not 32 bytes)
40+
pub fn slice_to_quantus_ss58(bytes: &[u8]) -> String {
41+
let arr: [u8; 32] = bytes.try_into().expect("account must be 32 bytes");
42+
bytes_to_quantus_ss58(&arr)
43+
}

0 commit comments

Comments
 (0)