Skip to content

feat: activate snark by default - #3650

Merged
damrobi merged 10 commits into
mainfrom
damrobi/msnark/3573-activate-snark-by-default
Nov 10, 2026
Merged

damrobi merged 10 commits into
mainfrom
damrobi/msnark/3573-activate-snark-by-default

Conversation

@damrobi

@damrobi damrobi commented Oct 26, 2026 •

Copy link
Copy Markdown
Collaborator

Content

Warning

We want to clear the CI cache before merging this PR

This PR enables the snark feature by default in all crates and cleans up some of mithril-stm outdated code.
The feature stays an opt-out.

Changed

Cleanup of mithril-stm:

  • SnarkProof no longer holds the parameters and the Merkle tree depth and IvcProof gets a golden serialization test. The golden values are updated.
  • Stale #[allow(dead_code)] attributes and snark gates repeated inside modules that already require the feature are removed. Items only used by tests are gated with cfg(test).
  • The SNARK lottery target is always computed with num-integer arithmetic, which fixes the rug-backend + snark build. The snark feature no longer enables rand and rand_chacha.

Switch to default:

  • snark is a default feature of mithril-stm, mithril-common, mithril-client, mithril-client-cli, mithril-client-wasm, the aggregator, the signer, the relay, the circuit key registry, the end-to-end runner and the protocol demo.
  • CI:
    • the workspace test job now covers the SNARK code of every crate except mithril-stm, which runs in its own job in place of the former snark job
    • the slow tests are excluded on ARM and macOS
    • clippy and the end-to-end workflows no longer pass --features snark
    • the Hydra CI includes the circuit test assets and verification keys
  • The SNARK book, the mithril-stm READMEs, examples and benches, and the circuit key runbooks no longer ask for --features snark.

The breaking changes are in mithril-stm 0.14.0 and mithril-common 0.9.0. All the modified crates get a minor bump, except mithril-client, which goes to 0.15.1.

Added

Test fixtures, to limit the slowdown of the tests with snark:

  • MithrilFixture computes its aggregate verification key once, from the closed key registration shared by its signers, instead of registering all the signers again.
  • Some tests of mithril-common and mithril-aggregator create fewer certificates.
  • The fake certificates get their stake distribution parties from MithrilFixtureBuilder without creating the signers' keys.

Pre-submit checklist

  • Branch
    • Tests are provided (if possible)
    • Crates versions are updated (if relevant)
    • CHANGELOG file is updated (if relevant)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
  • PR
    • All check jobs of the CI have succeeded
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested
    • Clear the CI cache before merging

Comments

Issue(s)

Relates to #3573

@damrobi damrobi self-assigned this Oct 26, 2026
@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch from 9922568 to 69e851a Compare October 26, 2026 13:57
@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Test Results

     5 files  ±  0     211 suites   - 25   2h 10m 16s ⏱️ + 1h 11m 6s
 4 296 tests + 69   4 296 ✅ + 69  0 💤 ±0  0 ❌ ±0 
13 765 runs  +344  13 765 ✅ +344  0 💤 ±0  0 ❌ ±0 

Results for commit 311b2d5. ± Comparison against base commit 09a9e8b.

This pull request removes 5 and adds 74 tests. Note that renamed tests count towards both.
mithril-aggregator ‑ tools::genesis::operations::tests::bootstrap_test_genesis_certificate_works
mithril-aggregator ‑ tools::genesis::operations::tests::export_sign_then_import_genesis_payload
mithril-common ‑ certificate_chain::certificate_verifier::tests::verify_certificate_chain_fails_when_adversarial_with_registered_signer_forgery_through_protocol_parameters
mithril-common ‑ test::builder::mithril_fixture::tests::bound_to_keeps_the_signer_unchanged
mithril-end-to-end ‑ mithril::genesis_keys::tests::legacy_keys_for_lagrange_without_the_snark_feature
mithril-client ‑ certificate_client::verify::tests::cache::early_stop_verification::commits_to_and_stops_in_the_space_of_a_dual_genesis_verification_key
mithril-client ‑ certificate_client::verify::tests::verification_key_formats::constructor_accepts_dual_verification_key_bundle
mithril-client ‑ certificate_client::verify::tests::verification_key_formats::verify_chain_succeeds_with_dual_bundle_on_pythagoras_chain
mithril-client ‑ certificate_client::verify::tests::verification_key_formats::verify_chain_succeeds_with_legacy_verification_key_on_lagrange_chain
mithril-client ‑ circuit_key_registry::tests::fails_on_a_response_exceeding_the_body_size_limit_before_using_it
mithril-client ‑ circuit_key_registry::tests::fails_when_no_network_is_served_by_the_aggregator_endpoint
mithril-client ‑ circuit_key_registry::tests::parses_a_network_without_registry_reference
mithril-client ‑ circuit_key_registry::tests::resolves_the_registry_of_the_network_matching_the_aggregator_endpoint
mithril-client ‑ circuit_key_registry::tests::retries_a_failed_download
mithril-client ‑ circuit_key_registry::tests::tolerates_top_level_metadata_entries_in_the_networks_configuration
…

♻️ This comment has been updated with latest results.

@damrobi
damrobi temporarily deployed to testing-preview October 26, 2026 14:39 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-2-preview October 26, 2026 14:39 — with GitHub Actions Inactive
@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch from 5ae648c to 4c65935 Compare October 26, 2026 15:47
@damrobi
damrobi temporarily deployed to testing-preview October 26, 2026 16:15 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-2-preview October 26, 2026 16:15 — with GitHub Actions Inactive
@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch from 4c65935 to 573b7a5 Compare October 29, 2026 13:04
@damrobi
damrobi temporarily deployed to testing-2-preview October 29, 2026 13:40 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-preview October 29, 2026 13:40 — with GitHub Actions Inactive
@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch 3 times, most recently from d943f15 to 4a97e3b Compare October 29, 2026 17:10
@damrobi
damrobi temporarily deployed to testing-2-preview October 29, 2026 17:53 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-preview October 29, 2026 17:53 — with GitHub Actions Inactive
@jpraynaud jpraynaud added the do-not-merge 🔒 Do not merge label Oct 30, 2026
@damrobi damrobi added the run-slow-tests Technical label to run slow tests tiers in the CI. label Oct 30, 2026
@damrobi
damrobi requested a review from jpraynaud October 30, 2026 15:35
@jpraynaud
jpraynaud requested a lite review from Copilot October 30, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Four unresolved findings remain, the most significant being that the mithril-stm opt-out feature build (--no-default-features --features num-integer-backend) is no longer compiled or tested in CI, alongside missing crate version bumps and SNARK being enabled by default for the WASM client.

4 open issues
4 files not reviewed
  • examples/client-wasm-nodejs/package-lock.json: Generated file
  • examples/client-wasm-web/package-lock.json: Generated file
  • mithril-client-wasm/ci-test/package-lock.json: Generated file
  • mithril-explorer/package-lock.json: Generated file
What changed in this PR

This PR turns on the snark feature by default across the Mithril crates, and cleans up mithril-stm so the SNARK code no longer carries stale allow(dead_code) attributes, repeated feature gates, or unused proof fields. The feature stays opt-out. It fits the work tracked in issue #3573, which asks for snark to be enabled by default while keeping backward compatibility for existing networks.

Changes:

  • mithril-stm 0.14.0 drops the parameters and Merkle depth from SnarkProof, stops serializing the IvcProof hash marker, and always computes the lottery target with num-integer arithmetic. Golden values are updated.
  • snark is a default feature in mithril-stm, mithril-common, mithril-client, the CLI and WASM clients, the aggregator, signer, relay, key registry, end-to-end runner and protocol demo. Crate versions are bumped to match.
  • CI runs mithril-stm in its own job, skips slow tests on ARM and macOS, and no longer passes --features snark. Docs, examples and runbooks drop that flag too.
File Description
mithril-test-lab/​mithril-end-to-end/​Cargo.toml Enables snark by default and bumps the crate version.
mithril-stm/​src/​signature_scheme/​schnorr_signature/​jubjub/​field_elements.rs Replaces feature gates with cfg(test) for test-only helpers.
mithril-stm/​src/​signature_scheme/​schnorr_signature/​error.rs Removes redundant snark gates from the Schnorr error module.
mithril-stm/​src/​protocol/​participant/​initializer.rs Updates an expect message that no longer mentions the old feature name.
mithril-stm/​src/​protocol/​key_registration/​register.rs Limits number_of_leaves to test builds with snark.
mithril-stm/​src/​protocol/​key_registration/​closed_registration_entry.rs Simplifies the SNARK field check in serialization.
mithril-stm/​src/​protocol/​aggregate_signature/​signature.rs Updates tests for the new SnarkProof constructor and the new golden CBOR bytes.
mithril-stm/​src/​protocol/​aggregate_signature/​clerk.rs Updates test helpers for the new SnarkProof constructor.
mithril-stm/​src/​proof_system/​halo2_snark/​signer.rs Removes a cfg attribute from a test registration call.
mithril-stm/​src/​proof_system/​halo2_snark/​prover_input.rs Removes stale allow(dead_code) attributes.
mithril-stm/​src/​proof_system/​halo2_snark/​proof.rs Drops params and merkle_tree_depth from SnarkProof and updates the golden JSON.
mithril-stm/​src/​proof_system/​halo2_snark/​mod.rs Removes a cfg attribute from a test registration call.
mithril-stm/​src/​proof_system/​halo2_snark/​eligibility.rs Removes the cfg_num_integer! macro so the lottery target always uses num-integer arithmetic.
mithril-stm/​src/​proof_system/​halo2_snark/​clerk.rs Removes a cfg attribute from a test registration call.
mithril-stm/​src/​proof_system/​halo2_snark/​aggregate_key.rs Removes a cfg attribute from a test registration call.
mithril-stm/​src/​proof_system/​halo2_ivc_snark/​verifier_setup.rs Narrows IVC setup helpers to test or benchmark builds.
mithril-stm/​src/​proof_system/​halo2_ivc_snark/​prover_input.rs Updates test fixtures for the new SnarkProof constructor.
mithril-stm/​src/​proof_system/​halo2_ivc_snark/​proof.rs Skips the hash marker in IvcProof serialization and updates test fixtures.
mithril-stm/​src/​proof_system/​halo2_ivc_snark/​mod.rs Switches a test-only re-export to a plain cfg(test) gate.
mithril-stm/​src/​membership_commitment/​merkle_tree/​tree.rs Removes repeated snark gates from tests.
mithril-stm/​src/​membership_commitment/​merkle_tree/​path.rs Removes the allow(dead_code) markers and gates legacy serialization to tests.
mithril-stm/​src/​membership_commitment/​merkle_tree/​leaf.rs Removes the allow(dead_code) markers on SNARK leaf types.
mithril-stm/​src/​membership_commitment/​merkle_tree/​error.rs Limits the invalid-path error variant to SNARK test builds.
mithril-stm/​src/​membership_commitment/​merkle_tree/​commitment.rs Gates test-only commitment helpers and removes stale attributes.
mithril-stm/​src/​lib.rs Simplifies the Poseidon digest import and re-export gating.
mithril-stm/​src/​circuits/​halo2/​witness.rs Gates the verification key accessor to tests.
mithril-stm/​src/​circuits/​halo2/​mod.rs Removes module-level allow(dead_code) attributes.
mithril-stm/​src/​circuits/​halo2/​keys.rs Gates the verifying key constructor to tests and benchmarks.
mithril-stm/​src/​circuits/​halo2_ivc/​tests/​assets/​README.md Drops --features snark from the asset regeneration commands.
mithril-stm/​src/​circuits/​halo2_ivc/​state.rs Removes stale allow(dead_code) attributes.
mithril-stm/​src/​circuits/​halo2_ivc/​mod.rs Removes a stale allow(dead_code) attribute.
mithril-stm/​src/​circuits/​halo2_ivc/​keys.rs Gates key constructors and accessors to tests or benchmarks.
mithril-stm/​src/​circuits/​halo2_ivc/​certificate_proof.rs Removes a stale allow(dead_code) attribute.
mithril-stm/​src/​circuits/​halo2_ivc/​bench/​helpers.rs Updates benchmark setup for the new SnarkProof constructor and the feature command.
mithril-stm/​SNARK.md Updates the SNARK book to describe the feature as enabled by default.
mithril-stm/​README.md Updates build, example and benchmark commands for the default feature.
mithril-stm/​examples/​recursive_snark_aggregate_signature.rs Updates the run command in the example header.
mithril-stm/​examples/​non_recursive_snark_aggregate_signature.rs Updates the run command in the example header.
mithril-stm/​CHANGELOG.md Adds the 0.14.0 entry with the breaking changes.
mithril-stm/​Cargo.toml Makes snark a default feature, drops rand, and bumps the version to 0.14.0.
mithril-stm/​benches/​size_benches.rs Reuses the crate's Poseidon digest type in the benchmark.
mithril-stm/​benches/​README.md Drops --features snark from benchmark commands.
mithril-stm/​benches/​halo2_ivc_snark.rs Drops --features snark from the run command in the doc header.
mithril-signer/​Cargo.toml Enables snark by default and bumps the version.
mithril-relay/​Cargo.toml Enables snark by default and bumps the version.
mithril-explorer/​package-lock.json Updates the lock entry for the WASM client version.
mithril-common/​Cargo.toml Enables snark by default and bumps the version to 0.9.0.
mithril-client/​Cargo.toml Enables snark by default and bumps the version to 0.15.0.
mithril-client-wasm/​package.json Bumps the package version.
mithril-client-wasm/​ci-test/​package-lock.json Updates the lock entry for the WASM client version.
mithril-client-wasm/​Cargo.toml Enables snark by default and bumps the version.
mithril-client-cli/​Cargo.toml Enables snark by default and bumps the version.
mithril-aggregator/​Cargo.toml Enables snark by default and bumps the version.
internal/​mithril-circuit-key-registry/​Cargo.toml Enables snark by default and points to the new mithril-common version.
internal/​mithril-aggregator-discovery/​Cargo.toml Points the mithril-common dependency to 0.9.0.
internal/​mithril-aggregator-client/​Cargo.toml Points the mithril-common dependency to 0.9.0.
internal/​cardano-node/​mithril-cardano-node-internal-database/​Cargo.toml Points the mithril-common dependency to 0.9.0.
flake.nix Keeps the circuit .asset and .vkey files in the Nix source filter.
examples/​client-wasm-web/​package-lock.json Updates the lock entry for the WASM client version.
examples/​client-wasm-nodejs/​package-lock.json Updates the lock entry for the WASM client version.
docs/​runbook/​update-circuit-keys/​README.md Drops --features snark from key update commands.
docs/​runbook/​circuit-key-registry/​README.md Updates the registry note and the aggregator build command.
demo/​protocol-demo/​Cargo.toml Enables snark by default and bumps the version.
CHANGELOG.md Adds a changelog entry for the default SNARK feature.
Cargo.toml Updates a comment on the CI test profile.
Cargo.lock Records the new crate versions and dependency links.
.github/​workflows/​test-rust.yml Runs mithril-stm in its own job and skips slow tests on ARM and macOS.
.github/​workflows/​test-e2e.yml Removes the --features snark defaults from the end-to-end build inputs.
.github/​workflows/​scripts/​clippy-check.sh Runs clippy for mithril-stm with only benchmark-internals.

Review effort: Lite

Comment thread .github/workflows/test-rust.yml Resolved
Comment thread mithril-client-wasm/Cargo.toml Resolved
Comment thread mithril-stm/CHANGELOG.md Resolved
@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch 2 times, most recently from b0ec52a to cb6e2de Compare October 30, 2026 17:06
@damrobi
damrobi temporarily deployed to testing-preview October 30, 2026 23:31 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-2-preview October 30, 2026 23:31 — with GitHub Actions Inactive
@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch from cb6e2de to 4bdb8b0 Compare November 3, 2026 09:16
@damrobi
damrobi temporarily deployed to testing-2-preview November 3, 2026 10:03 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-preview November 3, 2026 10:03 — with GitHub Actions Inactive
@Alenar

Alenar commented Nov 3, 2026 •

Copy link
Copy Markdown
Collaborator

Enabling snark by default have a strong impact on tests runtime, slow tests enabled or not.

Note

All slow tests are currently contained in mithril-stm.

For example on my computer, on the djo/3653/aggregator/migration-of-immutables-archives branch (but main results should be similar), running all tests of mithril-aggregator with or without the snark feature give the following result:

no snark snark
27s 69s

Twice as long, and in the CI the results are clear, if we compare the last main merge to the penultimate CI test runs in this branch:

Notes:

  • I removed the new "stm only" case, as this branch triggers slow tests so it's not representative.
  • The ubuntu-24 case from before include mithril-stm crate in tests suite, which are extracted into a new matrix member in this branch
  • The last main merge did not trigger any slow tests
  • I did not use the last CI run of this branch, since its time are far longer and I suspect github cache issues.
ubuntu-24 ubuntu-24-arm macos-15 windows-latest
Before 6m 9s 4m 36s 4m 12s 5m 38s
After 10m 15s 10m 57s 9m 1s 10m 12s
Rough factor x1.8 x2 x2 x1.8

This is, in my opinion, a deterioration of our working conditions as we are already loosing time by waiting for our CI to complete. So we should explore ways to speedup our tests suites.


From what I see the impact is especially strong on the CertificateChainBuilder which is used in a lot of place (their tests goes from 4.7s to 15s on my computer).

Looking into it I found an optimization which speed them up, here's a patch proposal:

Patch

diff --git a/mithril-common/src/protocol/signer_builder.rs b/mithril-common/src/protocol/signer_builder.rs
index 6b2acfe7e..10c0e85b0 100644
--- a/mithril-common/src/protocol/signer_builder.rs
+++ b/mithril-common/src/protocol/signer_builder.rs
@@ -77,12 +77,30 @@ impl SignerBuilder {
 
         let closed_registration = key_registration.close(&protocol_parameters.clone().into())?;
 
-        Ok(Self {
+        Ok(Self::from_registration(
+            closed_registration,
+            protocol_parameters,
+            epoch,
+        ))
+    }
+
+    /// [SignerBuilder] constructor from an already closed key registration.
+    ///
+    /// Unlike [SignerBuilder::new], the signers registrations are not verified again, the given
+    /// closed key registration must have been made with the given protocol parameters and epoch.
+    pub(crate) fn from_registration(
+        closed_key_registration: ProtocolClosedKeyRegistration,
+        protocol_parameters: &ProtocolParameters,
+        epoch: Epoch,
+    ) -> Self {
+        #[cfg(not(feature = "snark"))]
+        let _epoch = epoch;
+        Self {
             protocol_parameters: protocol_parameters.clone(),
-            closed_key_registration: closed_registration,
+            closed_key_registration,
             #[cfg(feature = "snark")]
             epoch,
-        })
+        }
     }
 
     /// Build a [MultiSigner] based on the registered parties
@@ -269,6 +287,28 @@ mod test {
         .expect("We should be able to construct a signer builder with valid signers");
     }
 
+    #[test]
+    fn signer_builder_from_registration_computes_same_avk_as_signer_builder_from_signers() {
+        let fixture = MithrilFixtureBuilder::default().with_signers(3).build();
+        let signer_builder = SignerBuilder::new(
+            &fixture.signers_with_stake(),
+            &fixture.protocol_parameters(),
+            Epoch::default(),
+        )
+        .unwrap();
+
+        let signer_builder_from_registration = SignerBuilder::from_registration(
+            fixture.signers_fixture()[0].protocol_closed_key_registration.clone(),
+            &fixture.protocol_parameters(),
+            Epoch::default(),
+        );
+
+        assert_eq!(
+            signer_builder.compute_aggregate_verification_key(),
+            signer_builder_from_registration.compute_aggregate_verification_key()
+        );
+    }
+
     #[test]
     fn cant_build_single_signer_for_unregistered_party() {
         let fixture = MithrilFixtureBuilder::default().with_signers(3).build();
diff --git a/mithril-common/src/test/builder/mithril_fixture.rs b/mithril-common/src/test/builder/mithril_fixture.rs
index d8bb8c8a9..06b4cb195 100644
--- a/mithril-common/src/test/builder/mithril_fixture.rs
+++ b/mithril-common/src/test/builder/mithril_fixture.rs
@@ -228,13 +228,22 @@ impl MithrilFixture {
     }
 
     /// Compute the Aggregate Verification Key for this fixture.
+    ///
+    /// Reuses the closed key registration shared by the fixture signers instead of re-running
+    /// a full key registration, which is costly (especially with the `snark` feature).
     pub fn compute_aggregate_verification_key(&self) -> ProtocolAggregateVerificationKey {
-        SignerBuilder::new(
-            &self.signers_with_stake(),
+        let closed_key_registration = self
+            .signers
+            .first()
+            .expect("a fixture must have at least one signer to compute its AVK")
+            .protocol_closed_key_registration
+            .clone();
+
+        SignerBuilder::from_registration(
+            closed_key_registration,
             &self.protocol_parameters,
             self.epoch,
         )
-        .unwrap()
         .compute_aggregate_verification_key()
     }
 

Taking up my mithril-aggregator tests suite run from before, here's the new numbers with and without the patch:

no snark snark
Before 27s 69s
After 25s 55s

It's significantly better with snark enabled, but still far from previous performance so more care will be needed for our tests.

Another optimization would be looking up for tests that doesn't need "true" certificates and use baked one instead , this would remove the CertificateChainBuilder which, I think, will remain slow whatever we do.

@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch from 1f889b2 to d18f5b9 Compare November 5, 2026 16:55
@damrobi
damrobi temporarily deployed to testing-preview November 5, 2026 17:36 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-2-preview November 5, 2026 17:36 — with GitHub Actions Inactive
@turmelclem

Copy link
Copy Markdown
Contributor

LGTM 👍 (and agree with Alenar & Jpraynaud comments)

@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch from 087df65 to 8ab62a8 Compare November 6, 2026 17:59
@damrobi
damrobi temporarily deployed to testing-2-preview November 6, 2026 18:35 — with GitHub Actions Inactive
@damrobi
damrobi temporarily deployed to testing-preview November 6, 2026 18:35 — with GitHub Actions Inactive
…est for the IvcProof encoding

`SnarkProof` no longer holds the parameters and the Merkle tree depth,
which were written but never read, so `SnarkProof::new` only takes the
circuit proof bytes.
The golden values are updated accordingly.

A golden test pins the CBOR encoding of `IvcProof` with a round trip on
stored bytes, built from the next-epoch step output asset.
…gates

Items that are used no longer carry `#[allow(dead_code)]`, and the ones
only used by tests are gated with `cfg(test)` instead.
Gates repeating the `snark` feature inside modules that already require
it are removed.
The Merkle batch commitment tests do not depend on SNARK code, so they
now also run without the `snark` feature.
An expect message still referring to the former `future_snark` feature
name is fixed.
…metic backend

The SNARK lottery target computation was only compiled with the
num-integer backend, so a `rug-backend` + `snark` build failed on Unix.
It now always uses num-integer arithmetic, which keeps the target value
identical for every signer and aggregator whatever backend is selected,
and the `snark` feature enables `num-integer` and `num-rational`.

The `snark` feature no longer enables `rand` and `rand_chacha`.
`rand` was only used by tests, which already get it as a dev-dependency.
`rand_chacha` is only needed outside tests by the benchmark helpers, so
it is now enabled by `benchmark-internals`.
The `snark` feature is enabled by default in mithril-stm, mithril-common,
mithril-client, mithril-client-cli, mithril-client-wasm, the nodes, the
circuit key registry, the end-to-end runner and the protocol demo.

The CI follows:
- the workspace test job now covers the SNARK code of every crate except
  mithril-stm, which runs in its own job
- the slow tests are excluded on the ARM and macOS platforms
- clippy and the end-to-end workflow no longer pass `--features snark`
- the Hydra CI includes the circuit test assets and verification keys
The SNARK book, the mithril-stm READMEs, examples and benches, the
circuit key runbooks and the IVC test assets README no longer ask for
`--features snark` and describe the feature as enabled by default.
@damrobi
damrobi force-pushed the damrobi/msnark/3573-activate-snark-by-default branch from 8ab62a8 to 311b2d5 Compare November 10, 2026 10:34
@damrobi
damrobi requested review from Alenar and turmelclem November 10, 2026 10:51

@jpraynaud jpraynaud left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@turmelclem turmelclem left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

look good to me 👍

@damrobi
damrobi merged commit f7fff31 into main Nov 10, 2026
53 checks passed
@damrobi
damrobi deleted the damrobi/msnark/3573-activate-snark-by-default branch November 10, 2026 12:38
@jpraynaud jpraynaud removed the do-not-merge 🔒 Do not merge label Nov 10, 2026

This branch was previously deployed

2 inactive deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants