Comments (4)
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.
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.
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.
Correct, I explain the Mnemonic it very well in my book http://n.bitcoin.ninja/ takes a look.
from nbitcoin.
Related Issues (20)
- How to generate taproot NOMS internal key?
- Unable to create or compile to get NBitcoin.dll
- "Unknown transaction optional data" error when calling GetBlock() HOT 1
- Sign a text message with NBitcoin HOT 6
- RobiniaDocs API Explorer
- Failing to P2WPKH HOT 4
- Getting Block, Block Height, Block Hash
- Invalid PSBTInput Unknown SigHash Type
- NBitcoin > 7.0.24 - BitcoinStream.ReadWrite(ref byte[]) does not work anymore HOT 1
- This feature of taproot is not supported in .NET Framework HOT 1
- Improve SigHash support
- I cant create BIP84 Account Extended Public Key HOT 1
- How to use NBitcoin to verify historical tx transactions data๏ผ
- How to change fee and destination address in existing transaction?
- Support for Testnet4 HOT 6
- No pruneheight property on the GetBlockchainInfo RPC call
- How can i use "SendCommandAsync"?
- Get the public key given a Tx out HOT 10
- `GetDestinationAddress` returns a different address compared to the online explorers HOT 8
- ScriptCoin and Coin cannot be Serialized HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nbitcoin.