-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from rhinestonewtf/account/safe7579-fix1271
Account/safe7579 fix1271
- Loading branch information
Showing
4 changed files
with
76 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
pragma solidity ^0.8.23; | ||
|
||
interface IERC1271 { | ||
/** | ||
* @dev Should return whether the signature provided is valid for the provided data | ||
* @param _dataHash Arbitrary length data signed on behalf of address(this) | ||
* @param _signature Signature byte array associated with _data | ||
* | ||
* MUST return the bytes4 magic value 0x1626ba7e when function passes. | ||
* MUST NOT modify state (using STATICCALL for solc < 0.5, view modifier for solc > | ||
* 0.5) | ||
* MUST allow external calls | ||
*/ | ||
function isValidSignature( | ||
bytes32 _dataHash, | ||
bytes calldata _signature | ||
) | ||
external | ||
view | ||
returns (bytes4); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters