Repository navigation
chore: Update Mainnet IC revisions canisters file - #11757
Merged
Merged
Conversation
Rachit2323
pushed a commit
to Rachit2323/ic
that referenced
this pull request
Oct 5, 2026
…11762) ### Why dfinity#11573 added `EcdsaCurve::Secp256r1` but left the system tests and the CUP compatibility test on secp256k1, because a secp256r1 key could not yet be decoded by the mainnet versions they run: * The default (non-`_head_nns`) variant of every `system_test_nns` test installs the **mainnet NNS canisters**. The mainnet registry canister (237a41f) rejected protobuf curve `2` ("Unable to convert 2 to an EcdsaCurve"), so any proposal adding a secp256r1 key failed. * `upgrade_downgrade_*_app_subnet_test`, `backup_manager_{up,down}grade_test` and `cup_compatibility_test` run the **mainnet replica** (or its `ic-replay` / `types-test` binaries). Both now support it: dfinity#11757 moved the mainnet registry canister to 98c898f, and every mainnet subnet in `mainnet-icos-revisions.json` runs d26cd03. Both contain dfinity#11573. ### What * `make_key_ids_for_all_schemes()` and `make_key_ids_for_all_idkg_schemes()` also return a secp256r1 key. The tests that use them now cover it too: the tecdsa tests, subnet recovery, backup, upgrade/downgrade and `rotate_ecdsa_idkg_key_test`. * The secp256r1 key shares its name (`some_ecdsa_key`) with the secp256k1 key, as keys of both curves would on mainnet. Code that tells ECDSA keys apart by name alone therefore fails the tests. * `make_ecdsa_key_id` is renamed to `make_ecdsa_secp256k1_key_id`, next to the new `make_ecdsa_secp256r1_key_id`. * `tecdsa_signature_life_cycle_test` adds the secp256r1 key to the keys enabled later, on a subnet that already holds the secp256k1 key of the same name. This is how it would be rolled out on mainnet. The test checks that requests for the key are rejected before it is enabled, signs with it, reshares it to a new subnet and disables it. * `ExhaustiveSet for EcdsaCurve` returns all curves again. `cup_compatibility_test` therefore checks that the mainnet replica decodes CUPs naming a secp256r1 key. ### Not in this PR * The secp256r1 arm of `cast_ecdsa_key_id` stays `unimplemented!`. * The signer canister's `signer.did` and the management canister bench's `candid.did` stay secp256k1-only. Both canisters type their ECDSA arguments with `ic-cdk-management-canister`. Its latest release (0.2.0) still requires `ic-management-canister-types ^0.10`, and cdk-rs `main` pins `0.10`. Version 0.11.0, the first with `Secp256r1`, was published only today. The only test that reaches this path is the manual `tecdsa_performance_test_template`, through `large_ecdsa_method_and_payload`. ### Tests Run locally in the dev container: * `cargo check`, `cargo fmt` and `ci/scripts/rust-lint.sh` are clean. * The CLAUDE.md depth-2 affected-test query (412 targets) misses most of the system tests: they reach the changed lib through their `_bin` target, one hop further, and `cup_compatibility_test` only uses `types_test` as data. So I added the `_farm` variants of every system test that calls the changed helpers or reads `exhaustive.rs`: 56 targets, covering both the mainnet-NNS and the `_head_nns` variant. Of the 466 targets in one run, 456 passed, including all 58 system-test targets: * every tecdsa test * `backup_manager_{up,down}grade_test` * `rotate_ecdsa_idkg_key_test` * both `upgrade_downgrade_*app_subnet_test` targets * all `sr_app_*` subnet recovery tests * `cup_compatibility_test` * all four `tecdsa_signature_life_cycle_test` variants The 10 failures are unrelated: * The 2 golden-state tests can't fetch the state snapshot without the SSH key they need. * 7 tests (4 timeouts, 3 failures) had run next to 55 Farm system tests, and passed when rerun alone with `--local_test_jobs=2`. * `//rs/pocket_ic_server:external_types_tests` also fails on master e8fd3a6: Internet Identity's candid gained fields with the release bump in dfinity#11757. Serializing the exhaustive CUP set here and on master shows 22 ECDSA key ids switching from curve 1 to curve 2. So `cup_compatibility_test` now has the mainnet `types-test` decode CUPs naming secp256r1 keys. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update mainnet system canisters revisions file to include the latest WASM version released on the mainnet.
This PR is created automatically using
mainnet_revisions.py