1
0

add_cosigner_seed

This commit is contained in:
ThomasV
2014-08-22 17:22:08 +02:00
parent 0ce463c99c
commit 91723999aa
2 changed files with 40 additions and 22 deletions

View File

@@ -1457,6 +1457,14 @@ class Wallet_2of2(BIP39_Wallet):
if not self.accounts:
return 'create_accounts'
def add_cosigner_seed(self, seed, name, password):
# we don't store the seed, only the master xpriv
xprv, xpub = bip32_root(seed)
xprv, xpub = bip32_private_derivation(xprv, "m/", self.root_derivation)
self.add_master_public_key(name, xpub)
self.add_master_private_key(name, xprv, password)
class Wallet_2of3(Wallet_2of2):
# multisig 2 of 3