Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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>
);
}