Make isValidSignature public

This commit is contained in:
Amir Bandeali
2018-06-17 13:35:45 -07:00
parent 12476c52a4
commit 9e431df848
9 changed files with 331 additions and 53 deletions

View File

@@ -82,7 +82,7 @@ contract MixinSignatureValidator is
address signer,
bytes memory signature
)
internal
public
view
returns (bool isValid)
{

View File

@@ -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);
}

View File

@@ -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);
}