-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an updated EIP-1271 function to the WebAuthn signer
- Loading branch information
Showing
3 changed files
with
43 additions
and
14 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
15 changes: 15 additions & 0 deletions
15
modules/4337/contracts/experimental/SignatureValidatorConstants.sol
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,15 @@ | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
/* solhint-disable one-contract-per-file */ | ||
pragma solidity >=0.7.0 <0.9.0; | ||
|
||
/** | ||
* @title SignatureValidatorConstants | ||
* @dev This contract defines the constants used for EIP-1271 signature validation. | ||
*/ | ||
contract SignatureValidatorConstants { | ||
// bytes4(keccak256("isValidSignature(bytes32,bytes)") | ||
bytes4 internal constant EIP1271_MAGIC_VALUE = 0x1626ba7e; | ||
|
||
// bytes4(keccak256("isValidSignature(bytes,bytes)") | ||
bytes4 internal constant LEGACY_EIP1271_MAGIC_VALUE = 0x20c13b0b; | ||
} |
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