bitcoinjs-message
bitcoinjs-message copied to clipboard
import error
I am trying to import the library as import { verify } from 'bitcoinjs-message'; and i get a buffer error. Any ideas? I am using reactjs.
Error: Uncaught TypeError: can't access property "from", Buffer2 is undefined
Code:
import {verify} from 'bitcoinjs-message';
export const verifySignature = (message, address, signature) => {
if (verify(message, address, signature)) {
alert('Signature verified')
} else {
alert('Signature not verified')
}
}