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

Use Account Storage for Shared WebAuthn Signer #412

Merged
merged 3 commits into from
May 13, 2024

Conversation

nlordell
Copy link
Collaborator

@nlordell nlordell commented May 6, 2024

Fixes #408

This PR reworks the WebAuthn singleton signer to use the account storage instead of its own storage for signer configuration (x, y, and verifiers configuration values). This allows the shared signer to work without a staked factory 🎉!

We also rename the methods a bit to be more consistent with our signer factory implementation, and adjust the E2E test accordingly (noting that a staked factory is no longer needed).

This also required some small adjustments to the 4337-passkeys-singleton-signer example for the new code (but overall simplification - no need for a staked factory anymore).

@nlordell nlordell requested a review from a team as a code owner May 6, 2024 10:09
@nlordell nlordell requested review from akshay-ap, mmv08 and remedcu and removed request for a team May 6, 2024 10:09
@nlordell nlordell requested a review from akshay-ap May 6, 2024 10:37
@coveralls
Copy link

coveralls commented May 6, 2024

Pull Request Test Coverage Report for Build 9061788035

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 11 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-13.7%) to 86.264%

Files with Coverage Reduction New Missed Lines %
modules/passkey/contracts/4337/SafeSignerLaunchpad.sol 11 71.26%
Totals Coverage Status
Change from base Build 9031357906: -13.7%
Covered Lines: 121
Relevant Lines: 132

💛 - Coveralls

@nlordell nlordell force-pushed the 308/single-setup-unit-tests branch 2 times, most recently from 89a0cb2 to 8a7eab4 Compare May 10, 2024 11:10
@nlordell nlordell changed the base branch from 308/single-setup-unit-tests to main May 10, 2024 11:14
@nlordell nlordell changed the base branch from main to 308/single-setup-unit-tests May 10, 2024 11:30
This PR reworks the WebAuthn singleton signer to use the account storage
instead of its own storage for signer configuration (x, y, and verifiers
configuration values). This allows the shared signer to work **without**
a staked factory 🎉!

We also rename the methods a bit to be more consistent with our signer
factory implementation, and adjust the E2E test accordingly (noting that
a staked factory is no longer needed).
@nlordell nlordell merged commit bec13b0 into 308/single-setup-unit-tests May 13, 2024
10 checks passed
@nlordell nlordell deleted the 408/use-self-storage branch May 13, 2024 11:09
@github-actions github-actions bot locked and limited conversation to collaborators May 13, 2024
@safe-global safe-global unlocked this conversation May 13, 2024
@nlordell
Copy link
Collaborator Author

I accidentally merged this into the wrong branch 🙈

@nlordell nlordell restored the 408/use-self-storage branch May 13, 2024 11:11
nlordell added a commit that referenced this pull request May 13, 2024
nlordell added a commit that referenced this pull request May 13, 2024
Fixes #408

This PR reworks the WebAuthn singleton signer to use the account storage
instead of its own storage for signer configuration (x, y, and verifiers
configuration values). This allows the shared signer to work **without**
a staked factory 🎉!

We also rename the methods a bit to be more consistent with our signer
factory implementation, and adjust the E2E test accordingly (noting that
a staked factory is no longer needed).

This also required some small adjustments to the
`4337-passkeys-singleton-signer` example for the new code (but overall
simplification - no need for a staked factory anymore).
nlordell added a commit that referenced this pull request May 13, 2024
Fixes #408

This PR reworks the WebAuthn singleton signer to use the account storage
instead of its own storage for signer configuration (x, y, and verifiers
configuration values). This allows the shared signer to work **without**
a staked factory 🎉!

We also rename the methods a bit to be more consistent with our signer
factory implementation, and adjust the E2E test accordingly (noting that
a staked factory is no longer needed).

This also required some small adjustments to the
`4337-passkeys-singleton-signer` example for the new code (but overall
simplification - no need for a staked factory anymore).
@nlordell nlordell deleted the 408/use-self-storage branch May 13, 2024 11:40
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.

Use Self-Storage for Passkey Singleton Signer
4 participants