bitcoinjs-message icon indicating copy to clipboard operation
bitcoinjs-message copied to clipboard

import error

Open captCovalent opened this issue 3 years ago • 0 comments

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')
    }
}

captCovalent avatar Jun 14 '22 10:06 captCovalent