-
Notifications
You must be signed in to change notification settings - Fork 13
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 #118 from roycoprotocol/feat/erc1271-weiroll-wallet
Make WeirollWallet ERC1271 Compliant
- Loading branch information
Showing
3 changed files
with
76 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.0; | ||
|
||
/// @title IERC1271 | ||
/// @notice Interface defined by EIP-1271 | ||
/// @dev Interface for verifying contract account signatures | ||
interface IERC1271 { | ||
/// @notice Returns whether the provided signature is valid for the provided data | ||
/// @dev Returns 0x1626ba7e (magic value) when function passes. | ||
/// @param digest Hash of the message to validate the signature against | ||
/// @param signature Signature produced for the provided digest | ||
function isValidSignature(bytes32 digest, bytes memory 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