Skip to content

Support for tprv keys #15

@afomi

Description

@afomi

Noticed something when using the library on test net and wanted to run it by you, @libitx, before working on a PR.

mnemonic = BSV.Mnemonic.new(128)
seed = BSV.Mnemonic.to_seed(mnemonic)
extkey = BSV.ExtKey.from_seed!(seed)
xprv = extkey |> BSV.ExtKey.to_string
BSV.ExtKey.from_string(xprv)

raises

** (FunctionClauseError) no function clause matching in BSV.ExtKey.from_string/1

Am I missing something regarding test keys; support for tprv and tpub.
Would an addition be valid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions