Skip to content

feat(sdk-core): add webauthnInfo support to bulkAcceptShare#8365

Merged
mohammadalfaiyazbitgo merged 1 commit intomasterfrom
WP-8314-bulk-accept-webauthn-info
Apr 1, 2026
Merged

feat(sdk-core): add webauthnInfo support to bulkAcceptShare#8365
mohammadalfaiyazbitgo merged 1 commit intomasterfrom
WP-8314-bulk-accept-webauthn-info

Conversation

@derranW26
Copy link
Copy Markdown
Contributor

Summary

  • Adds AcceptShareWebauthnInfo type and extends BulkAcceptShareOptions and AcceptShareOptionsRequest with optional webauthnInfo
  • In both ECDH and userMultiKeyRotationRequired branches of bulkAcceptShare(), encrypts wallet prv with PRF-derived passphrase when webauthnInfo is provided
  • Passphrase is consumed client-side only — never sent to server

Test plan

  • ECDH branch with webauthnInfo: verifies otpDeviceId, prfSalt, encryptedPrv present; passphrase absent
  • userMultiKeyRotationRequired branch with webauthnInfo: same assertions + pub still present
  • Backward compat: no webauthnInfo field when not provided
  • All 13 existing bulkAcceptShare tests still pass
  • tsc --noEmit passes

Ticket: WP-8314

@derranW26 derranW26 force-pushed the WP-8314-bulk-accept-webauthn-info branch from 0d54fd1 to ada11fd Compare March 27, 2026 17:51
Copy link
Copy Markdown
Contributor

@mohammadalfaiyazbitgo mohammadalfaiyazbitgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@derranW26 derranW26 marked this pull request as ready for review March 29, 2026 01:23
@derranW26 derranW26 requested review from a team as code owners March 29, 2026 01:23
@derranW26 derranW26 requested a review from a team as a code owner March 30, 2026 17:17
@sachushaji
Copy link
Copy Markdown
Contributor

@claude

@derranW26 derranW26 marked this pull request as draft March 30, 2026 17:25
@derranW26 derranW26 force-pushed the WP-8314-bulk-accept-webauthn-info branch from 4c32ac5 to ae8092f Compare March 30, 2026 17:27
@sachushaji
Copy link
Copy Markdown
Contributor

@claude

Copy link
Copy Markdown
Contributor

@mohammadalfaiyazbitgo mohammadalfaiyazbitgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some feedback, but otherwise lgtm.

Comment thread .iyarc
Comment thread modules/sdk-core/src/bitgo/wallet/iWallets.ts
Comment thread modules/sdk-core/src/bitgo/wallet/iWallets.ts
Comment thread modules/sdk-core/src/bitgo/wallet/wallets.ts Outdated
Adds AcceptShareWebauthnInfo type and extends
BulkAcceptShareOptions with optional webauthnInfo.
In the ECDH branch of bulkAcceptShare(), encrypts
wallet prv with PRF-derived passphrase when
webauthnInfo is provided. Passphrase is consumed
client-side only and never sent to server.

TICKET: WP-8314
@derranW26 derranW26 force-pushed the WP-8314-bulk-accept-webauthn-info branch from 16e86e9 to 808a97e Compare April 1, 2026 03:18
@derranW26 derranW26 marked this pull request as ready for review April 1, 2026 03:49
@mohammadalfaiyazbitgo mohammadalfaiyazbitgo merged commit cdc4442 into master Apr 1, 2026
21 checks passed
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.

3 participants