def test_imported_pubkey(self, tmp_storage) -> None: text = """ 15hETetDmcXm1mM4sEf7U2KXC9hDHFMSzz 1GPHVTY8UD9my6jyP4tb2TYJwUbDetyNC6 """ wallet = Wallet(tmp_storage) account = wallet.create_account_from_text_entries(KeystoreTextType.ADDRESSES, ScriptType.NONE, [ "15hETetDmcXm1mM4sEf7U2KXC9hDHFMSzz", "1GPHVTY8UD9my6jyP4tb2TYJwUbDetyNC6" ], "password") check_legacy_parent_of_imported_address_wallet(wallet)
def test_imported_privkey(self, tmp_storage) -> None: wallet = Wallet(tmp_storage) account = wallet.create_account_from_text_entries(KeystoreTextType.PRIVATE_KEYS, ScriptType.P2PKH, [ "KzMFjMC2MPadjvX5Cd7b8AKKjjpBSoRKUTpoAtN6B3J9ezWYyXS6" ], "password") keypairs = {'02c6467b7e621144105ed3e4835b0b4ab7e35266a2ae1c4f8baa19e9ca93452997': 'KzMFjMC2MPadjvX5Cd7b8AKKjjpBSoRKUTpoAtN6B3J9ezWYyXS6'} check_legacy_parent_of_imported_privkey_wallet(wallet, keypairs=keypairs, password='******')