Skip to content

chore: Update Mainnet IC revisions canisters file - #11757

Merged
pr-creation-bot-dfinity-ic[bot] merged 1 commit into
masterfrom
ic-nervous-system-wasms
Oct 5, 2026
Merged

pr-creation-bot-dfinity-ic[bot] merged 1 commit into
masterfrom
ic-nervous-system-wasms

Conversation

@pr-creation-bot-dfinity-ic

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot 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.

Auto approving mainnet-canister-revisions.json changes.

@pr-creation-bot-dfinity-ic
pr-creation-bot-dfinity-ic Bot added this pull request to the merge queue Oct 5, 2026
Merged via the queue into master with commit e8fd3a6 Oct 5, 2026
40 checks passed
@pr-creation-bot-dfinity-ic
pr-creation-bot-dfinity-ic Bot deleted the ic-nervous-system-wasms branch October 5, 2026 10:53
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants