Skip to content

privateExtendedKey error handling #7

@axic

Description

@axic

Calling privateExtendedKey on a public node will result in the following exception: TypeError: Cannot read property 'length' of null

I think it would be nice either adding an assert into the function with a proper message or to return null.

In comparison privateKey just returns null if it is not available, perhaps that should be followed.

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