Skip to content

feat(sdk-core): add webauthnInfo support to singular acceptShare#8400

Draft
rishikeshdadam136 wants to merge 1 commit intomasterfrom
WP-8310
Draft

feat(sdk-core): add webauthnInfo support to singular acceptShare#8400
rishikeshdadam136 wants to merge 1 commit intomasterfrom
WP-8310

Conversation

@rishikeshdadam136
Copy link
Copy Markdown
Contributor

Description

Add webauthnInfo support to the singular acceptShare SDK method. When callers provide webauthnInfo, the method computes a PRF-encrypted copy of the wallet private key and includes it in the updateShare payload. This enables the server to store a WebAuthn-protected copy alongside the password-encrypted copy, allowing passwordless wallet access via passkey.

The passphrase is consumed client-side only and never sent to the server.

Covers two of the three acceptShare branches:

  • ECDH (standard): encrypts decryptedSharedWalletPrv with PRF passphrase
  • userMultiKeyRotationRequired: encrypts freshly generated walletKeychain.prv with PRF passphrase
  • keychainOverrideRequired: unchanged — no plaintext PRV available at the SDK layer

Ticket: WP-8310

When callers provide webauthnInfo, acceptShare now computes a
PRF-encrypted copy of the wallet private key and includes it in
the updateShare payload. This enables the server to store a
WebAuthn-protected copy alongside the password-encrypted copy,
allowing passwordless wallet access via passkey.

Ticket: WP-8310
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