Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support multiple passkey per domain #259

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cpb8010
Copy link
Contributor

@cpb8010 cpb8010 commented Jan 29, 2025

Description

Add another layer in the mapping to perform the passkey lookup, allowing up to 256 unique passkeys per domain (overkill?).
The upside is that this fits within the existing signature format, with the only breaking changes to how to revoke or view passkeys.
The downside is that for each additional passkey, you linearly increase the verification cost of the most recently added one. (looks like about 20k additional gas per key)

Additional context

This is a brute force approach from the contract side only, the more elegant side would be to use the authenticationResponse.id which would require persisting it and breaking the signature format from the SDK!

Thoughts?

This is a brute force approach from the contract side only,
the more elegant side would be to use the authenticationResponse.id
which would require persisting it and breaking the signature format!
Fixes an issue with validation
@cpb8010 cpb8010 requested review from MexicanAce and ly0va January 29, 2025 07:07
@cpb8010 cpb8010 self-assigned this Jan 29, 2025
@cpb8010 cpb8010 added question Further information is requested project: contracts labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: contracts question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant