I just retried, and it failed, bitsocket seems broken for me
For your question, I'm not an expert of all these details but this issue is for public key, but maybe it's the raw vs WIF
I'll try later with paper wallet from bitcoin.com see if it's work, or try to give a private key, it may be a fun challenge to try to encrypt it with your public key (if it's possible)