You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sdk-lib-mpc): EddsaRetrofitData type + DKG retrofit constructor + getFirstMessage routing
Add optional `retrofitData` parameter to the `DKG` constructor so parties
can seed a retrofit DKG ceremony from their existing MPCv1 scalar instead
of generating fresh key material.
- Import and store `EddsaRetrofitData` on the `DKG` class instance.
- Constructor gains a 4th optional param: `retrofitData?: EddsaRetrofitData`.
- `getFirstMessage` branches on `this.retrofitData`: when set it calls
`wasm.ed25519_dkg_round0_import` (ships in WCI-1217) passing the
party's clamped scalar, aggregate public key, and chain code; otherwise
it falls through to the existing `ed25519_dkg_round0_process` path.
- Export `EddsaRetrofitData` as a named type from `eddsa-mps/index.ts`
so callers can import it directly without going through `MPSTypes`.
The `as any` cast on the wasm call-site is intentional and temporary:
`ed25519_dkg_round0_import` will be typed once WCI-1217 lands.
Ticket: WCI-1261
Session-Id: ac4bfdd3-68f2-464c-bb89-a871628f8093
Task-Id: bf6d94d3-a6fd-40c3-9c4a-efc7ffd08fdf
0 commit comments