Skip to content

Improve gas estimation for WebAuthn.verify using OZ's valid probe strategy - #75

Closed
amiecorso wants to merge 2 commits into
base:mainfrom
amiecorso:amie/fix-verify-with-oz-approach
Closed

Improve gas estimation for WebAuthn.verify using OZ's valid probe strategy#75
amiecorso wants to merge 2 commits into
base:mainfrom
amiecorso:amie/fix-verify-with-oz-approach

Conversation

@amiecorso

Copy link
Copy Markdown

No description provided.

@cb-heimdall

cb-heimdall commented Nov 5, 2025

Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Comment thread src/WebAuthn.sol
}

// Precompile absent; fall back to FreshCryptoLib's software verifier.
return FCL_ecdsa.ecdsa_verify(messageHash, webAuthnAuth.r, webAuthnAuth.s, x, y);

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

continue to use FCL instead of OZ verifier because it has slightly better gas performance and was internally audited so we can be confident in the quality of the audit.

@amiecorso amiecorso closed this Jun 12, 2026
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.

2 participants