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
maybe there are some cases of using signatures from your examples in evm contracts?
what are the verification options? i just know ECDSA.recover(hash, signature)
from @openzeppelin/contracts/utils/cryptography/ECDSA.sol
where there is v value
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
/// @solidity memory-safe-assembly
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
The text was updated successfully, but these errors were encountered:
maybe there are some cases of using signatures from your examples in evm contracts?
what are the verification options? i just know ECDSA.recover(hash, signature)
from @openzeppelin/contracts/utils/cryptography/ECDSA.sol
where there is v value
The text was updated successfully, but these errors were encountered: