diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-06-18 04:35:45 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-06-19 07:00:55 +0800 |
commit | 9e431df848ab16b830315ff3aa4ee05af2a23a7f (patch) | |
tree | 3d9b38ac8611fc6c455d0aed6502a07ad636e1ef /packages/contracts | |
parent | 12476c52a424c3e6cd9f50dfe667ea17a3570f41 (diff) | |
download | dexon-sol-tools-9e431df848ab16b830315ff3aa4ee05af2a23a7f.tar dexon-sol-tools-9e431df848ab16b830315ff3aa4ee05af2a23a7f.tar.gz dexon-sol-tools-9e431df848ab16b830315ff3aa4ee05af2a23a7f.tar.bz2 dexon-sol-tools-9e431df848ab16b830315ff3aa4ee05af2a23a7f.tar.lz dexon-sol-tools-9e431df848ab16b830315ff3aa4ee05af2a23a7f.tar.xz dexon-sol-tools-9e431df848ab16b830315ff3aa4ee05af2a23a7f.tar.zst dexon-sol-tools-9e431df848ab16b830315ff3aa4ee05af2a23a7f.zip |
Make isValidSignature public
Diffstat (limited to 'packages/contracts')
3 files changed, 15 insertions, 15 deletions
diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol index 1a556dfe2..8ad15aaff 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol @@ -82,7 +82,7 @@ contract MixinSignatureValidator is address signer, bytes memory signature ) - internal + public view returns (bool isValid) { diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/ISignatureValidator.sol b/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/ISignatureValidator.sol index 26e360c91..02aa9776e 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/ISignatureValidator.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/interfaces/ISignatureValidator.sol @@ -39,4 +39,18 @@ contract ISignatureValidator { bool approval ) external; + + /// @dev Verifies that a signature is valid. + /// @param hash Message hash that is signed. + /// @param signer Address of signer. + /// @param signature Proof of signing. + /// @return Validity of order signature. + function isValidSignature( + bytes32 hash, + address signer, + bytes memory signature + ) + public + view + returns (bool isValid); } diff --git a/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSignatureValidator.sol b/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSignatureValidator.sol index 7eed453ff..5e286e43a 100644 --- a/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSignatureValidator.sol +++ b/packages/contracts/src/contracts/current/protocol/Exchange/mixins/MSignatureValidator.sol @@ -35,18 +35,4 @@ contract MSignatureValidator is PreSigned, // 0x07 Trezor // 0x08 } - - /// @dev Verifies that a signature is valid. - /// @param hash Message hash that is signed. - /// @param signer Address of signer. - /// @param signature Proof of signing. - /// @return Validity of order signature. - function isValidSignature( - bytes32 hash, - address signer, - bytes memory signature - ) - internal - view - returns (bool isValid); } |