Skip to content

Passkeys web wallet#479

Open
maycon-mello wants to merge 20 commits intomasterfrom
passkeys-web-wallet
Open

Passkeys web wallet#479
maycon-mello wants to merge 20 commits intomasterfrom
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
Copy link
Copy Markdown

Copilot AI left a comment

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.

Copy link
Copy Markdown

Copilot AI left a comment

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.

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>
stored = JSON.parse(storedValue);
}
} catch {
// Malformed JSON or localStorage access error
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.

would the actual error detail be useful for debugging?

rpId,
};
} catch {
throw new Error(
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.

linting

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