Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
publicKey: () => {
try {
cryptography.getAddressFromPublicKey(value);
return '';
} catch (e) {
return t('This is not a valid public key. Please enter the correct public key.');
}
},
message: () => (
export const validateLSKPublicKey = (address) => {
try {
cryptography.getAddressFromPublicKey(address);
return 0;
} catch (e) {
return 1;
}
};