1
0

wizard integration

This commit is contained in:
ThomasV
2014-08-26 16:23:24 +02:00
parent 58c6518b30
commit 744eee6858
3 changed files with 23 additions and 37 deletions

View File

@@ -1464,6 +1464,12 @@ class Wallet_2of2(BIP39_Wallet):
self.add_master_public_key(name, xpub)
self.add_master_private_key(name, xprv, password)
def add_cosigner_xpub(self, seed, name):
# store only master xpub
xprv, xpub = bip32_root(mnemonic_to_seed(seed,''))
xprv, xpub = bip32_private_derivation(xprv, "m/", self.root_derivation)
self.add_master_public_key(name, xpub)
class Wallet_2of3(Wallet_2of2):