Skip to content

ecc library invalid #136

Open
Open
@bucko13

Description

@bucko13

I'm trying to use this to init bitcoinjs-lib. When running in a test (see #62) I get an error : ecc library invalid.

Versions:

When digging in to this a little, I was able to get the validation to pass by changing the isUint8Array function. If that becomes a no_op then the rest of the validations pass. If I change it to:

function isUint8Array(value) {
    return value instanceof Buffer
}

it passes.

It's possible there's some weird polyfill going on in my environment which is why it's passing for some and not others. That said, when looking at the validation in bitcoinjs-lib (which maybe this should be filed there?) it does convert a point hex to a Buffer but then the validation library here checks to see if it's an instance of Uint8Array.

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