Trying some bch real time app with bitsocket : http://snakebch.ml (a quick on chain game I just made) The latency is soooooo high, transactions takes seconds; so it's impossible to do real time app on bch right now
That's super cool. I think the latency comes from tx building and NOT broadcasting, which means room for improvement. Could try pre-building the tx and broadcast when user press button
Good luck! Looking forward to playing with it. Also feel free to join the bitdb chatroom, there are many others working on bitcoin apps https://t.me/joinchat/HH1DDQ8pZlSlsdNcKgIcxw
I'm using your datacash lib, so I tried to split the build and send process, and I even tried to build 3 different transaction with 3 different rpc, and 90% of the time it takes ...
more than 600ms to receive it back thought bitsocket, I'll try maybe with a different library and a different network connection but I'm afraid it won't work :)
Hmm, are you using a modern browser ? I just retried (i'm using firefox) and it worked Can you try and see if when you play transaction are sent ? (Click on the "Please see here" link)
You can try to press F12 to open the "dev panel" and see if there is some errors (if so post them) : the "sending ..." is when you do a transaction, and so on
Once the private key is enter you can play the game with the arrows of your keyboard. Maybe make sure to click on the game to it "gets the focus". I know it's not really user friendly
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)