def get_key(self, hwif): # TODO add optional path for sub keys bip32node = deserialize.wallet(self.testnet, hwif) return bip32node.wif()
def validate_wallet(self, hwif): try: deserialize.wallet(self.testnet, hwif) return True except exceptions.InvalidInput: return False
def wallet_network(hwif, testnet): try: deserialize.wallet(testnet, hwif) return True except exceptions.InvalidInput: return False