Closed alexbarron closed 2 years ago
That's interesting. I went through this section no problem.
Looks like you defined "address". For my code, I just printed like this: print(priv.point.address(testnet=True))
Would that make a difference in your solution?
I confirmed it was just an issue with that particular testnet faucet. Putting in their own tBTC donation address also returns invalid! I tried another testnet faucet and everything worked fine. Here's the one I used: https://bitcoinfaucet.uo1.net/
In case that one goes down as well, here's a list of several faucet options: https://support.keys.casa/hc/en-us/articles/360047997611-Testnet-Bitcoin-TBTC-
I am having this same issue, except that the site you referenced is also giving me an error. However, their own donation address returns valid. One thing I'm noticing is that the addresses generated from this code are shorter than the donation address.
I'm trying to generate a testnet address and send testnet BTC to myself through https://testnet-faucet.mempool.co/ but it's returning an invalid testnet error. I checked my code against the answer code and it's the same. In fact, even the testnet address listed in the answer for this exercise is returning invalid on that site. I'm also trying Jimmy's passphrase from the book and the code returns a different address than his in the book but both give me the same invalid testnet address error.
Anyone else encounter something like this? My tests are all passing. And here is my code for generating the testnet address: