Skip to content

Using NBitcoin, how can I generate Electrum old type HD wallet from private key/seed? #1241

Open
@monwazchh

Description

@monwazchh

Hello, I have been using NBitcoin for my projects for a long time and I am very satisfied.

However, I am currently facing a problem.
I am creating an “old” type HD wallet in the Electrum application from a private key or a seed (actually both are the same).
I want to do the same in C#. I tried this with NBitcoin with many different methods but unfortunately I couldn't succeed.
I wonder, can I create Electrum Old HD wallet using NBitcoin?

Note I have tried many classes such as Key Path, Mnemonic, ExtKey but unfortunately I could not generate the same addresses.

Honestly, I have studied Electrum's source code as much as I can understand. The only thing I noticed is that the private key/seed is encrypted with sha256 an extra 100k times and then addresses are generated. I tried this in C# but again it generates different addresses.

Can anyone help me with this?

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