Giter Site home page Giter Site logo

Comments (4)

NicolasDorier avatar NicolasDorier commented on August 20, 2024

There is no standard for encrypting a BitcoinExtKey. If encryption with password is needed for an ExtKey then the best is to use BIP39 with the Mnemonic class.

from nbitcoin.

nopara73 avatar nopara73 commented on August 20, 2024

That is a transparent box design: Designing the system in terms of how it will look from the inside.
Should I implement it into NBitcoin, or you would like to keep it this way and close the issue?

from nbitcoin.

nopara73 avatar nopara73 commented on August 20, 2024

After playing with Mnemonic I think I understand what the design should be, please correct me if I'm wrong:
Mnemonic AND password gives us the ExtKey.
A user has to know the password and (if not lazy) the mnemonic.
But the mnemonic should be stored by the wallet, too in encrypted form, and this encryption happens with the password.
This way the user don't have to type the mnemonic every time it logs into its wallet, only if it loses the encrypted file, in order to recover its wallet.

If I am finally on the right track here, I see how it would be a bad idea to implement encryption directly to the BitcoinExtKey, what I recommended in my previous comment (however it will still cost a lot of developer time for others until they finally figure this out, if they don't start out with Mnemonic right away.)

Is the mnemonic encryption supported somehow by NBitoin? (Currently I am using this StringCipher: http://stackoverflow.com/a/10177020/2061103)

from nbitcoin.

NicolasDorier avatar NicolasDorier commented on August 20, 2024

Correct, I explain the Mnemonic it very well in my book http://n.bitcoin.ninja/ takes a look.

from nbitcoin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.