Skip to content

feat(dkg): add EdDSA MPCv2 keygen API spec entries and route stubs to AWM#255

Draft
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
WCI-895-eddsa-mpcv2-keygen-callback-factory-pt1
Draft

feat(dkg): add EdDSA MPCv2 keygen API spec entries and route stubs to AWM#255
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
WCI-895-eddsa-mpcv2-keygen-callback-factory-pt1

Conversation

@bitgo-ai-agent-dev

Copy link
Copy Markdown

What

  • Add EddsaMPCv2KeyGenInitializeRequestType, EddsaMPCv2KeyGenRound1RequestType, and EddsaMPCv2KeyGenFinalizeRequestType io-ts types to advancedWalletManagerApiSpec.ts
  • Add three new route entries to AdvancedWalletManagerApiSpec:
    • POST /api/{coin}/eddsampcv2/keygen/initialize
    • POST /api/{coin}/eddsampcv2/keygen/round1
    • POST /api/{coin}/eddsampcv2/keygen/finalize
  • Wire each route in createKeyGenRouter with a NotImplementedError stub (real handlers land in WCI-892)

Why

  • The EdDSA MPCv2 DKG protocol requires AWM to perform the WASM/GPG operations for each key-gen phase while ME orchestrates via callbacks. This PR defines the typed API surface that the ME client (pt2) and AWM handler (WCI-892) both depend on.
  • Part of the AKM EdDSA MPCv2 upgrade (WCI-888 scoping) to use the external-signer callback pattern instead of inline key generation.

Test plan

  • npm run tsc -- --noEmit passes
  • npm test — all 400 existing tests pass

Stack

This PR is part 1 of 2 in a stack. Review and merge in order:

  1. fix: github action variable never set #252 — AWM API spec types + route stubs (base: master) ← you are here
  2. 59 #253 — AWM client methods + ME callback factory + tests (base: pt1)

Ticket: WCI-895

@linear-code

linear-code Bot commented Jul 8, 2026

Copy link
Copy Markdown

WCI-895

@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the WCI-895-eddsa-mpcv2-keygen-callback-factory-pt1 branch from cb678cd to ae2780b Compare July 8, 2026 16:36
Add io-ts request/response types and three new route entries to
AdvancedWalletManagerApiSpec for the EdDSA MPCv2 DKG protocol:
  - POST /api/{coin}/eddsampcv2/keygen/initialize
  - POST /api/{coin}/eddsampcv2/keygen/round1
  - POST /api/{coin}/eddsampcv2/keygen/finalize

Each route is wired in createKeyGenRouter with a NotImplementedError
stub; the real handlers land in WCI-892. The type exports are needed
by the ME client added in the next PR (WCI-893).

Ticket: WCI-895
Session-Id: 4df43c40-1cea-4bcc-ae92-080304169427
Task-Id: 04666b37-650f-4c07-97b0-76a62e98f1ad
@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the WCI-895-eddsa-mpcv2-keygen-callback-factory-pt1 branch 2 times, most recently from 0b9c357 to c13f9e0 Compare July 8, 2026 16:44
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.

0 participants