Skip to content

feat(web-demo): Passkey-crypto web demo#8716

Merged
derranW26 merged 3 commits intomasterfrom
WCN-194/passkey-demo-toarraybuffer-fix
May 8, 2026
Merged

feat(web-demo): Passkey-crypto web demo#8716
derranW26 merged 3 commits intomasterfrom
WCN-194/passkey-demo-toarraybuffer-fix

Conversation

@derranW26
Copy link
Copy Markdown
Contributor

No description provided.

@derranW26 derranW26 requested review from a team as code owners May 7, 2026 23:54
@derranW26 derranW26 requested a review from rajangarg047 May 7, 2026 23:54
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 7, 2026

WCN-194

@derranW26 derranW26 changed the title Wcn 194/passkey demo toarraybuffer fix Wcn 194/passkey demo May 8, 2026
@derranW26 derranW26 changed the title Wcn 194/passkey demo feat(web-demo): Passkey-crypto web demo May 8, 2026
Comment thread modules/web-demo/package.json Outdated
Comment thread modules/passkey-crypto/src/derivePasskeyPrfKey.ts Outdated
Comment thread modules/web-demo/src/components/PasskeyDemo/index.tsx
derranW26 added 2 commits May 8, 2026 11:55
- Register, attach, derive PRF key, send funds, remove passkey flows
- Right-column panels: registered passkeys + associated wallets with refresh
- Quick-action buttons to select passkey/wallet for attach/remove steps
- Config fields (env, enterpriseId, coin) persisted to localStorage
- Coin registered via coinFactory before SDK use
- Staging environment option added

TICKET: WCN-188
Replace access-token-based initialization with a proper login flow
using WebCryptoHmacStrategy + IndexedDbTokenStore for browser-compatible
HMAC auth. Rework the UI to map 1:1 to passkey-crypto SDK functions
with explicit inputs, split passkey selection buttons, colored activity
log, and wallet keychain fetching for webauthnDevices display.

TICKET: WCN-188
@derranW26 derranW26 force-pushed the WCN-194/passkey-demo-toarraybuffer-fix branch from 1dce8af to b60d108 Compare May 8, 2026 16:03
Comment thread modules/passkey-crypto/src/derivePasskeyPrfKey.ts
passkey-crypto stores PRF salts and credential IDs as canonical base64url
(no padding). atob requires the input length to be a multiple of 4 —
without the padding it silently drops the trailing partial group and the
PRF extension receives a salt that is missing its last byte.

Pad with '=' up to the next multiple of 4 before atob.

Also: pin @bitgo/passkey-crypto to ^0.2.0 in web-demo; tighten
derivePasskeyPrfKey (dual webauthnDevices / webAuthnDevices, narrow auth
JSON, typed allowCredential ids). Rebased onto master: prfHelpers stays
on WebauthnDevice + toBase64Url.

Refs: WCN-194

TICKET: WCN-194
@derranW26 derranW26 force-pushed the WCN-194/passkey-demo-toarraybuffer-fix branch from b60d108 to ba653a8 Compare May 8, 2026 16:25
@derranW26 derranW26 merged commit 0f4220d into master May 8, 2026
22 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