Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import error #43

Open
captCovalent opened this issue Jun 14, 2022 · 0 comments
Open

import error #43

captCovalent opened this issue Jun 14, 2022 · 0 comments

Comments

@captCovalent
Copy link

captCovalent commented Jun 14, 2022

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')
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant