Asset-Orchard Verifying Keys¶
PostFiat pins the verifying keys of its two live Asset-Orchard circuits, swap and private egress. Validators load them from embedded artifacts instead of rebuilding them. This page publishes each key's fingerprint, the command that regenerates the keys from the circuits and compares them, and the latest result.
The 2026 Orchard soundness advisory
GHSA-ww9q-8r59-xv46
(CVE-2026-54496) is a missing copy constraint in halo2_gadgets
variable-base scalar multiplication. It is fixed in halo2_gadgets 0.5.0 and
orchard 0.14.0. The fixed and unfixed circuits share one constraint system
and differ only in the permutation argument, so they have different verifying
keys.
Result¶
| Item | Value |
|---|---|
| Date | 2026-10-22 UTC |
| Commit | a2516a1b8e7da088bd27136cc9c7df218e821d41 (main) |
| Command | scripts/verify-orchard-vks |
| Toolchain | rustc 1.95.0, release profile, --locked |
| Dependencies | orchard 0.14.0, halo2_gadgets 0.5.0 (crates.io checksum fb2a697cad929f706b7987fe804ad57d43622cd37463ba7e4d662a926fdcfea3), vendored halo2_proofs 0.3.2 (boundary) |
| Pin tests | 14 passed, 0 failed |
| Release keygen | 2 passed, 0 failed, 352.00 s |
| Artifacts | Both regenerated pinned assemblies are byte-identical to the committed artifacts |
PASS. The live keys are exactly the keys that the current circuits produce under the fixed dependencies.
Fingerprints¶
runtime_pinned_vk_fingerprint is the key fingerprint the code computes. It is
SHA3-384 over a domain label, a length, and the rendering of the key's pinned
part, vk.pinned(): domain, constraint system, and fixed and permutation
commitments (asset_orchard_circuit.rs:3012, :3894, :3956). Validators
refuse an embedded key whose fingerprint differs from the pin.
| Circuit | Role | runtime_pinned_vk_fingerprint |
How checked |
|---|---|---|---|
asset_orchard.swap.pricing_bound.v4 |
Live | 1b38a9d9906cbfce9addf9a500a1b4bec720a33118507946f427a628772fac48f1786bffa390a5254db215fadf7f3460 |
Regenerated by keygen; artifact byte-identical |
asset_orchard.private_egress.v2 |
Live | d29cab6577eb9d968ec67d9134844c605f88ddd0241ce1147fc364e882f259a35318b869a95927be3fdb1e2e521ed4cc |
Regenerated by keygen; artifact byte-identical |
asset_orchard.swap.pricing_bound.v3 |
Archive replay only | 0cd57d13af7cd85965c4be283b40243d0fb582b7d5c99d77237b7f72dd18529879eb776b4ac0cd04bbe2198393c4eb97 |
Reconstructed from its artifact; matches its pin |
asset_orchard.private_egress.v1 |
Archive replay only | a5118831487dc46577a66806ce11d3a10b977ce0fd4d12552d9728b6b64e63283266b5fe6adc2d5d75ab3d83e3a38114 |
Reconstructed from its artifact; matches its pin |
The committed artifacts, under crates/privacy_orchard/artifacts/:
| File | SHA-256 |
|---|---|
asset_orchard_swap_vk_pinned_assembly.v1.bin |
3c33db46f118434d53bb08f96a911038832be2b3a7ccecd0a6ceb5ffa1e45d3a |
asset_orchard_private_egress_vk_pinned_assembly.v1.bin |
fafd12307e9672d4db653601b8a141fb20757e1a801266a2f65b641010f780e3 |
replay/asset_orchard_swap_vk_pinned_assembly.custom_poseidon_v3.pre_3218ec53.bin |
e0f734e3a68459c83f47adbac1caa07c9813ec87cccc4a24657d83eed8059f26 |
replay/asset_orchard_private_egress_vk_pinned_assembly.custom_poseidon_v1.pre_3218ec53.bin |
ca34d126c2107fa35180e7a4e7699fc49d8feb3a36cf5609d2e3b4850c2fb395 |
asset_orchard_k15_params.v1.bin (shared k = 15 parameters) |
e1fb29749c7bd0870768044d5329b4e293cb2d44dae24db2554605427b19d0dd |
The metadata also carries a vk_hash: swap 640e83ff…b828, private egress
a8e020b8…d6be. It is the SHA3-384 of a fixed attestation text that names the
circuit (asset_orchard_circuit.rs:130, :202). It labels the key's
identity. It is not computed from the key.
The fingerprint hashes Rust's Debug rendering of the key, which a future
compiler could format differently. The script therefore also compares the
regenerated artifact bytes, which do not depend on that formatting.
Regenerate and compare¶
From the repository root:
scripts/verify-orchard-vks # pins and release keygen, about 6 minutes on 8+ cores
scripts/verify-orchard-vks --quick # pins only
The script:
- checks that
Cargo.lockpinsorchard 0.14.0,halo2_gadgets 0.5.0andhalo2_proofs 0.3.2; - runs the 14 pin tests:
cargo test --locked --release -p postfiat-privacy-orchard --lib vk; - runs the release-only keygen tests
swap_full_shape_key_metadata_is_pinned_and_consistentandprivate_egress_full_shape_key_metadata_is_pinned_and_consistent(asset_orchard_circuit_tests.rs:1945,:2443). They rebuild both keys from the circuits and assert every metadata field against its pin. Theasset-orchard-vk-dev-envfeature lets them write the regenerated assemblies, so the script can compare them byte for byte with the committed artifacts.
The same keygen tests without the artifact comparison:
cargo test --locked --release -p postfiat-privacy-orchard --lib \
full_shape_key_metadata_is_pinned_and_consistent -- --ignored --nocapture
What the result establishes¶
- The live keys are the fixed circuits' keys. Every Asset-Orchard ECC chip
is built with
CircuitVersion::AnchoredBase, the fixed scalar multiplication (asset_orchard_circuit.rs:837,:1473,:1949;asset_orchard_sinsemilla.rs:674,:719). No code in the repository selectsInsecureUnanchoredBase. The circuits use the affected gadget,[ivk] g_d(asset_orchard_circuit.rs:1855). An unfixed circuit would therefore have produced a different key, and the comparison would have failed. - Native Orchard actions use the fixed key. They are verified with
orchard::circuit::VerifyingKey::build()(verify.rs:1883). Inorchard 0.14.0, that builds the fixedFixedPostNu6_2key. PostFiat pins no separate fingerprint for it. No code requestsInsecurePreNu6_2.
What it cannot establish¶
- Proofs made before public history. Public git history starts on
2026-07-17 with commit
11839c14f. That commit already pinsorchard 0.14.0andhalo2_gadgets 0.5.0, and already carries today's VK pins. Nothing earlier is public. This repository therefore cannot show whether any devnet proof created before 2026-07-17 came from a pre-fix gadget version or circuit. - Where the two replay keys came from. Their circuit types
(
asset_orchard_legacy_circuits.rs) carry only the historical constraint system and refuse synthesis, so keygen cannot regenerate them. Reconstruction checks their fingerprints against their pins. But the fixed and unfixed circuits share one constraint system, so reconstruction cannot show which version produced the replay assemblies. The commit they were cut from,3218ec53, is not in public history. - Native Orchard proofs from older versions. An Orchard action proof made
with
orchardbelow 0.14.0 would not verify under the fixed key. Public history cannot show whether any such proof exists in the pre-publication devnet.
Any change to a circuit, its dependencies, or a pinned key needs new compatibility vectors and cryptographic review. Updating a recorded fingerprint is not, by itself, a review.