How to use the @liskhq/lisk-client.cryptography.getAddressFromPublicKey function in @liskhq/lisk-client

To help you get started, we’ve selected a few @liskhq/lisk-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github LiskHQ / lisk-desktop / src / components / screens / verify-message / verifyMessageInput.js View on Github external
publicKey: () => {
        try {
          cryptography.getAddressFromPublicKey(value);
          return '';
        } catch (e) {
          return t('This is not a valid public key. Please enter the correct public key.');
        }
      },
      message: () => (
github LiskHQ / lisk-desktop / src / utils / validators.js View on Github external
export const validateLSKPublicKey = (address) => {
  try {
    cryptography.getAddressFromPublicKey(address);
    return 0;
  } catch (e) {
    return 1;
  }
};