Skip to content

chore(vetkeys): migrate basic_vetkd to icp-cli and @icp-sdk/vetkeys#1358

Open
marc0olo wants to merge 4 commits into
masterfrom
chore/vetkeys-add-basic-vetkd
Open

chore(vetkeys): migrate basic_vetkd to icp-cli and @icp-sdk/vetkeys#1358
marc0olo wants to merge 4 commits into
masterfrom
chore/vetkeys-add-basic-vetkd

Conversation

@marc0olo

@marc0olo marc0olo commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Moves motoko/vetkd and rust/vetkd into motoko/vetkeys/basic_vetkd and rust/vetkeys/basic_vetkd, grouping them alongside basic_ibe, basic_bls_signing, etc.
  • Migrates from dfx/webpack to icp-cli + Vite
  • Updates all libraries to current versions used by the other vetkeys examples
  • Adds a make test target that CI exercises after deploy

Changes

Backends:

  • Switch from ic_cdk::management_canister to ic-cdk-management-canister = "0.1.1" crate (Rust)
  • Return blob instead of hex-encoded text — direct compatibility with @icp-sdk/vetkeys
  • Remove Hex.mo utility (no longer needed)
  • Motoko toolchain: moc 1.9.0 / core 2.5.0
  • Motoko recipe: @dfinity/motoko@v5.0.0 (no configuration.name needed)

Frontend:

  • Webpack → Vite with icpBindgen plugin
  • @dfinity/vetkeys@icp-sdk/vetkeys ^0.5.0-beta.0
  • @dfinity/auth-client@icp-sdk/auth ^7.1.0
  • Asset canister: @dfinity/asset-canister@v2.2.1

CI:

  • Delete motoko-vetkd-example.yml and rust-vetkd-example.yml (dfx-based, failing)
  • Add unified vetkeys-basic-vetkd.yml with icp-dev-env-{motoko,rust}:0.3.1 containers

Test plan

  • Motoko CI job deploys and make test passes
  • Rust CI job deploys and make test passes
  • Frontend loads, VetKey fetch works, symmetric encrypt/decrypt round-trips
  • IBE encrypt for a principal, IBE decrypt as that principal

🤖 Generated with Claude Code

Moves motoko/vetkd and rust/vetkd to motoko/vetkeys/basic_vetkd and
rust/vetkeys/basic_vetkd, grouping them with the other vetkeys examples.

- Replace dfx/webpack with icp-cli + Vite
- Switch ic_cdk::management_canister to ic-cdk-management-canister crate
- Return blobs instead of hex strings for direct @icp-sdk/vetkeys compat
- Use @dfinity/asset-canister@v2.2.1 and icp-dev-env 0.3.1 containers
- Add Makefile test target that validates both VetKD endpoints
- Remove Hex utility module (no longer needed with blob returns)
- Delete old motoko-vetkd-example.yml and rust-vetkd-example.yml workflows
- Add unified vetkeys-basic-vetkd.yml CI workflow

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@marc0olo marc0olo requested review from a team as code owners June 9, 2026 17:01
marc0olo and others added 3 commits June 9, 2026 21:08
…e prompt in CI

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