Skip to content

[RFC] Add partial BIP39 support (import only) #16393

@hugohn

Description

@hugohn

Context:
In 0.17.0 Bitcoin Core added sethdseed RPC command which allows users to set their own seed for the HD wallet.

However, because Core internally interprets the seed as a CKey, it can only hold 256 bits.

BIP39 defines a mnemonic code for generating wallet seeds. It is currently supported by some of the most popular wallets on the market. BIP39 uses 512-bit seeds.

Problem:
Core does not currently support BIP39-style seeds.

Proposal:
Add partial support for BIP39 to Core by letting sethdseed accept a seed whose length is up to 512 bits.

Thoughts? If people feel this is something useful to have, I can start working on an implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions