dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.2k forks source link

BIP32 and change addresses. #1587

Closed staier closed 7 years ago

staier commented 7 years ago

Hello , in order to restore address keys in case of a loss , i'd like to have possibility to use deterministic addresses with dashcore .

According to this https://dashpay.atlassian.net/wiki/spaces/DOC/pages/10158245/DIY+Deterministic+Addresses+BIP32

i can use them if i imoprt them in to the wallet , however normal operation is impossible without change addresses. And methiks i cannot control generation of those . Is this correct ?

chaeplin commented 7 years ago

You can use standalone tool(offline) like https://iancoleman.github.io/bip39/

With 12.2.x(in developing), you can use mnemonic seed with DashCore but only one internal/external account yet.

staier commented 7 years ago

external address use m/44'/5'/x'/0/y : x - account_no, y - addres_index

Could you give me some link for a reference , i have no idea what is it . Thanks.

chaeplin commented 7 years ago

check https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki and https://github.com/satoshilabs/slips/blob/master/slip-0044.md

staier commented 7 years ago

Thanks. Last quick question. Does this mean , i can generate address and set the key type to internal , so after importing it to dashd it will be used as a changeaddress? Or i should read the doc to understand the whole thing? ;)

chaeplin commented 7 years ago

I think you should read the doc.

BIP39 Mnemonic code for generating deterministic keys

BIP32 Hierarchical Deterministic Wallets

BIP43 Purpose Field for Deterministic Wallets

BIP44 Multi-Account Hierarchy for Deterministic Wallets

https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki

https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

https://github.com/bitcoin/bips/blob/master/bip-0043.mediawiki

https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki

Current DashCore(12.1.5) is not compatible with bip32 wallet. But you can import all the wif to DashCore. Some wallets use two path one for External and one for Internal, some use just one External.

staier commented 7 years ago

Thanks again , will try to grok it. i think the issue can be closed , as there is nothing todo.