Skip to content

chore(vetkeys): migrate basic_bls_signing to icp-cli and @icp-sdk/vetkeys#1352

Draft
marc0olo wants to merge 6 commits into
masterfrom
chore/vetkeys-basic-bls-signing-migration
Draft

chore(vetkeys): migrate basic_bls_signing to icp-cli and @icp-sdk/vetkeys#1352
marc0olo wants to merge 6 commits into
masterfrom
chore/vetkeys-basic-bls-signing-migration

Conversation

@marc0olo
Copy link
Copy Markdown
Member

Summary

Migrates the basic_bls_signing vetkeys example as part of #1343:

  • Replaces dfx.json with icp.yaml for both Rust and Motoko backends
  • Replaces @dfinity/vetkeys@0.3.0 with @icp-sdk/vetkeys@0.5.0-beta.0
  • Replaces @dfinity/auth-client / @dfinity/principal / @dfinity/agent with @icp-sdk/auth@7.1.0 / @icp-sdk/core@5.4.0
  • Bumps Rust crate ic-vetkeys to 0.7.0
  • Bumps Motoko package ic-vetkeys to 0.5.0, updates core to 2.4.0, adds [toolchain] moc = "1.5.1"
  • Replaces dfx generate with @icp-sdk/bindgen in gen_bindings.sh
  • Updates vite.config.ts to use icp CLI for dev server config
  • Removes window.global polyfill, updates all actor creation to use HttpAgent.create() + Actor.createActor()
  • Adds CI workflow (rust-vetkeys-basic-bls-signing-example.yml) for both Rust and Motoko on Darwin and Linux
  • Drops icp.ninja support (no dfx.json = not deployable on icp.ninja), comments out icp.ninja badges in README

Test plan

  • CI workflow passes for both Rust and Motoko backends on Darwin and Linux
  • npm install resolves without errors in frontend/
  • icp network start -d && icp deploy succeeds from rust/ and motoko/ dirs
  • No remaining @dfinity/vetkeys or dfx references in the example

🤖 Generated with Claude Code

marc0olo and others added 6 commits May 29, 2026 12:25
…keys

- Replace dfx.json with icp.yaml (Rust and Motoko backends)
- Use @icp-sdk/vetkeys@0.5.0-beta.0 instead of @dfinity/vetkeys
- Use @icp-sdk/auth@7.1.0 and @icp-sdk/core@5.4.0
- Update Motoko ic-vetkeys to 0.5.0, Rust ic-vetkeys to 0.7.0
- Add moc 1.5.1 toolchain to mops.toml
- Replace dfx generate with @icp-sdk/bindgen in gen_bindings.sh
- Add CI workflow for both Rust and Motoko backends
- Drop icp.ninja support (dfx.json removed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Drop channel = "1.88.0" and profile = "default" from rust-toolchain.toml;
  use stable Rust from provision script to avoid the cargo component error
  introduced in 1.88.0 where cargo is no longer a standalone component
- Remove cargo install candid-extractor from CI; the guard in gen_bindings.sh
  skips make extract-candid when the binary is absent, using the committed .did

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The icp CLI's @dfinity/asset-canister recipe symlinks frontend/ into the
backend subdirectory during build. Bash's `cd ../..` operates on logical
paths, so it lands back in the backend dir instead of the example root,
causing bindgen to look for `<backend>/rust/backend/backend.did`.

Use `pwd -P` to resolve the script's physical location and derive absolute
paths for the example root, frontend dir, and the .did file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Replace AuthClient.create() with new AuthClient({ identityProvider })
- Replace client.login({onSuccess,onError}) with await client.signIn()
- Replace client.logout() with client.signOut()
- Await authClient.getIdentity() (now async in v7)
- isAuthenticated() is now synchronous (no await)
- Fix ic_root_key → IC_ROOT_KEY (CanisterEnv type uses uppercase)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ic-vetkeys 0.7.0 requires ic-cdk ^0.20.1 which uses ic-cdk-executor ^2.0.0.
The previously pinned ic-cdk 0.18.3 requires ic-cdk-executor ^1.0.0.
Since ic-cdk-executor uses `links`, only one version can exist in the graph.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
In ic-cdk 0.20, the management_canister module was extracted into
the separate ic-cdk-management-canister crate. Update imports from
ic_cdk::management_canister to ic_cdk_management_canister.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant