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-core): send webauthnInfo with enterpriseId for MPC user keychain
MPC/TSS wallet creation attached the user keychain's passkey by sending a
bare webauthnDevices array (no enterpriseId) on POST /api/v2/:coin/key. The
wallet-platform atomic key-creation endpoint only consumes webauthnInfo (a
single object including enterpriseId, used to validate the PRF salt) and
ignores webauthnDevices on input, so passkeys were never persisted for
TSS/MPC user keychains.
Switch MPC user-keychain creation to send webauthnInfo with enterpriseId,
mirroring the onchain key-creation contract. Applied across all four MPC
keychain implementations (ECDSA + EdDSA, MPCv1 + MPCv2), threading the
existing createKeychains enterprise param down to the USER participant, and
widen WebauthnInfo with optional enterpriseId.
Add unit tests asserting webauthnInfo (with enterpriseId) is sent on the
user keychain across all four MPC paths, that the deprecated webauthnDevices
array is not sent, and that the PRF-encrypted prv decrypts with the webauthn
passphrase.
WCN-848
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments