Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions contracts/utils/cryptography/signers/SignerWebAuthn.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ abstract contract SignerWebAuthn is SignerP256 {
bytes32 hash,
bytes calldata signature
) internal view virtual override returns (bool) {
(bytes32 qx, bytes32 qy) = signer();
(bool decodeSuccess, WebAuthn.WebAuthnAuth calldata auth) = WebAuthn.tryDecodeAuth(signature);

return
decodeSuccess
? WebAuthn.verify(abi.encodePacked(hash), auth, qx, qy)
: super._rawSignatureValidation(hash, signature);
if (decodeSuccess) {
(bytes32 qx, bytes32 qy) = signer();
return WebAuthn.verify(abi.encodePacked(hash), auth, qx, qy);
} else {
return super._rawSignatureValidation(hash, signature);
}
}
}
Loading