Skip to content

import error #43

Open
Open
@captCovalent

Description

@captCovalent

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions