add_cosigner_seed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user