add Available since 4.1 comments
This commit is contained in:
@ -31,7 +31,7 @@ library ECDSA {
|
||||
|
||||
// Check the signature length
|
||||
// - case 65: r,s,v signature (standard)
|
||||
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098)
|
||||
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
|
||||
if (signature.length == 65) {
|
||||
// ecrecover takes the signature parameters, and the only way to get them
|
||||
// currently is to use assembly.
|
||||
|
||||
@ -13,6 +13,8 @@ import "../../interfaces/IERC1271.sol";
|
||||
*
|
||||
* Note: unlike ECDSA signatures, contract signature's are revocable, and the outcome of this function can thus change
|
||||
* through time. It could return true at block N and false at block N+1 (or the opposite).
|
||||
*
|
||||
* _Available since v4.1._
|
||||
*/
|
||||
library SignatureChecker {
|
||||
function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {
|
||||
|
||||
Reference in New Issue
Block a user