Closed sonnyparlin closed 2 years ago
You're right, I have added an extra check in commit https://github.com/1200wd/bitcoinlib/commit/1e77bed61507c775791a2f05e89c4bbfe4849041
Thank you, when do you think I can expect to see these changes make into a production release? Not sure how you guys do your releases...
Just released version 0.6.3
Thanks! You might want to run the same check the function wallet_create_or_open, I believe the issue still exists there, but I've confirmed your fix for opening via Wallet(name, main_key_object).
I have created a wallet using bitcoinlib. The wallet is named 'my-awesome-wallet55.' When I try to open my existing wallet with a newly generated mnemonic phrase (a different phrase than the one the wallet was created with), the behavior I expect is an exception or security error, however the wallet opens anyway and even lets me spend bitcoin. See the example below with comments.
Here is the output, as you can see it failed the if/else test because the private keys do not match and then sends bitcoin:
Is this the expected behavior? If so, how do I authenticate a wallet using the Mnemonic phrase?