Conversation
732f7d1 to
1628bdc
Compare
2019024 to
ce8045a
Compare
There was a problem hiding this comment.
Pull request overview
Adds passkey-based authentication to the Truvera Web Wallet SDK, enabling WebAuthn PRF-derived key material to encrypt/decrypt the cloud wallet master key, with automatic enrollment + localStorage persistence on first use.
Changes:
- Introduces low-level WebAuthn passkey helpers (register, PRF assertion, credentialId encoding).
- Extends web
initialize()to supportpasskey: true | { ...options }, including enrollment and subsequent authentication. - Adds core cloud-wallet passkey key-derivation + enrollment/authentication helpers and updates docs/examples/tests.
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/web/src/passkey.js | New WebAuthn/PRF helper utilities (registration, PRF extraction, credentialId encode/decode). |
| packages/web/src/passkey.test.js | Unit tests for passkey helpers. |
| packages/web/src/index.js | Adds passkey flow to SDK initialization, plus exported passkey helpers. |
| packages/web/src/index.test.js | Adds initialization tests for passkey enroll/auth flows and validation changes. |
| packages/web/README.md | Documents passkey auth usage/options and mnemonic return behavior. |
| packages/web/example.html | Updates mnemonic example to use local bundle and logs output. |
| packages/web/example-passkey.html | Adds passkey example HTML page. |
| packages/core/src/cloud-wallet.ts | Adds passkey-based vault key derivation + enroll/auth/init APIs. |
| packages/core/src/cloud-wallet.test.js | Adds tests for new core passkey APIs. |
| docs/cloud-wallet.md | Documents passkey authentication architecture and usage patterns. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…nfirmed during ceremony
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| stored = JSON.parse(storedValue); | ||
| } | ||
| } catch { | ||
| // Malformed JSON or localStorage access error |
There was a problem hiding this comment.
would the actual error detail be useful for debugging?
| rpId, | ||
| }; | ||
| } catch { | ||
| throw new Error( |
No description provided.