You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When verify webauth signature. In case S value > _P256_N_DIV_2, library will return false. But we can Canonical S- value to preventing the creation of a second valid signature
if (webAuthnAuth.s > _P256_N_DIV_2) {
// guard against signature malleability
webAuthnAuth.s = FCL_Elliptic_ZZ.n - webAuthnAuth.s;
//return false;
}
The text was updated successfully, but these errors were encountered:
webauthn-sol/src/WebAuthn.sol
Line 110 in 619f20a
When verify webauth signature. In case
S value > _P256_N_DIV_2
, library will return false. But we can Canonical S- value to preventing the creation of a second valid signatureThe text was updated successfully, but these errors were encountered: