How to use the @liskhq/lisk-client.cryptography.verifyMessageWithPublicKey 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 / verifyMessage / result.js View on Github external
export default function Result({
  finalCallback, inputs, prevStep, t,
}) {
  let isCorrect = false;
  try {
    isCorrect = cryptography.verifyMessageWithPublicKey(inputs);
  } catch (e) {
    isCorrect = false;
  }

  return (
    <div>
      <h1>{isCorrect ? t('The signature is correct') : t('The signature is incorrect')}</h1>
      
      
        {t('Go to Dashboard')}
        {t('Go back')}
      
    </div>
  );
}