electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit cba9a2dc2c1c786a50b3254b74a501d84213fc72
parent b1b15f510cc1496a765ac75cafdccef4d2af2c94
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  2 Sep 2016 10:18:53 +0200

trustedcoin: add_seed

Diffstat:
Mplugins/trustedcoin/trustedcoin.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/plugins/trustedcoin/trustedcoin.py b/plugins/trustedcoin/trustedcoin.py @@ -393,13 +393,12 @@ class TrustedCoinPlugin(BasePlugin): wizard.request_password(run_next=f) def on_restore_pw(self, wizard, seed, password): - # FIXME - # wallet.add_seed(seed, password) storage = wizard.storage words = seed.split() n = len(words)/2 k1 = keystore.xprv_from_seed(' '.join(words[0:n])) k2 = keystore.xprv_from_seed(' '.join(words[n:])) + k1.add_seed(seed) k1.update_password(None, password) k2.update_password(None, password) storage.put('x1/', k1.dump())