TwoKeySignatureValidator
contract TwoKeySignatureValidator
Reference
Functions
setInitialParams
function setInitialParams(address _twoKeySingletonRegistry, address _proxyStorage) publicFunction to simulate constructor.
- Parameters:
_twoKeySingletonRegistry- is the address of TWO_KEY_SINGLETON_REGISTRY_proxyStorage- is the address of proxy of storage contracts
validateSignName
function validateSignName(string _name, bytes signature) public pure returns (address)Function to validate signature which will sign name.
- Parameters:
_name- is user name to be signedsignature- is signature containing that signed name- Returns:
- if signature is good it will resolve address, otherwise it will be address(0)
validateSignUserData
function validateSignUserData(string _name, string _fullName, string _email, bytes signature) public pure returns (address)Function to validate signature which will sign user data.
- Parameters:
_name- is the name of user_fullName- is the full name of user_email- is the email of usersignature- is the signature- Returns:
- if signature is good it will resolve address, otherwise it will be address(0)
validateSignWalletName
function validateSignWalletName(string username, string _username_walletName, bytes signature) public pure returns (address)Function to validate signature which will sign wallet name.
- Parameters:
username- is the username of the user_username_walletName- is = concat(username,'_',walletName)signature- bytes- Returns:
- if signature is good it will resolve address, otherwise it will be address(0)