add Available since 4.1 comments

This commit is contained in:
Hadrien Croubois
2021-04-19 20:55:16 +02:00
parent b9125001f0
commit 9a698e6b7b
13 changed files with 24 additions and 2 deletions

View File

@ -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.

View File

@ -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) {