I am using WSL 2 in my windows 10. I have follow all the steps to set up bitcoin integration locally. It works fine. When I open the candid UI and call the function get_p2pkh_address it shows me an error!
I came across the same error when I deploy basic_bitcoin example (either local or IC mainnet).
However, the other example - threshold-ecdsa works perfectly fine.
I have a quick look on the code.
threshold-ecdsa uses lower case secp256k1 while basic_bitcoin use uppercase Secp256k1.
After I updated basic_bitcoin to use lower case secp256k1 and redeploy, it works fine with local regtest and IC Bitcoin testnet.