Skip to content

Passkeys web wallet#479

Merged
maycon-mello merged 23 commits into
masterfrom
passkeys-web-wallet
Apr 15, 2026
Merged

Passkeys web wallet#479
maycon-mello merged 23 commits into
masterfrom
passkeys-web-wallet

Conversation

@maycon-mello

Copy link
Copy Markdown
Collaborator

No description provided.

@maycon-mello
maycon-mello force-pushed the passkeys-web-wallet branch from 2019024 to ce8045a Compare April 3, 2026 19:05
Comment thread docs/cloud-wallet.md

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 support passkey: 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.

Comment thread packages/web/src/passkey.js Outdated
Comment thread packages/web/src/passkey.js
Comment thread packages/web/src/passkey.js Outdated
Comment thread packages/web/src/index.js Outdated
Comment thread packages/web/src/index.js Outdated
Comment thread packages/web/src/index.js Outdated
Comment thread packages/web/src/index.js
Comment thread packages/web/example.html Outdated
Comment thread packages/web/src/passkey.js
Comment thread packages/web/examples/passkey.html

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread packages/web/src/passkey.js Outdated
Comment thread packages/web/src/passkey.js Outdated
Comment thread packages/web/src/index.js
Comment thread packages/web/src/index.js
Comment thread packages/web/src/index.js Outdated
maycon-mello and others added 3 commits April 10, 2026 09:12
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>
Comment thread packages/web/src/index.js Outdated
Comment thread packages/web/src/index.js Outdated
@maycon-mello
maycon-mello merged commit 4c66770 into master Apr 15, 2026
8 checks passed
@maycon-mello
maycon-mello deleted the passkeys-web-wallet branch April 15, 2026 16:19
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