Closed volbil closed 5 years ago
Thanks for reporting this. If MicroBitcoin is a fork of Bitcoin, it might have a different format as a replay protection. Also keep in mind, that Bitcoin Cash changed the signing process, so it's not compatible with the old Bitcoin.
It's a strange error, I don't think it applies to Bitcoin Cash because that's the version I use the most and it seems to be working fine.
Bitcoin version might be outdated as I am not using Bitcoin myself anymore, but TSBW.io seems working fine and nobody reported anything.
I suspect the most probable reason is a bug in your code. Unfortunately, I don't have much time to investigate it. I can help with any questions, but that's about it, sorry.
You need to look at MicroBitcoin spec for tx signing and double-check your code.
BTW, nice face-lift on the wallet, looks modern! :)
Thanks :)
So, I figure it out, it was MicroBitcoin core issue. Thanks for your help!
@volbil Glad to hear!
Hello @NxtChg, first of all thanks for your awesome wallet :)
Now about the issue: I used your Bitcoin Cash version as base for MicroBitcoin (Bitcoin hardfork) web wallet. It works just fine with when you sending transaction with only one input (transactions successfully broadcasting to network), but when it uses two or more inputs, this error appears:
error code: -26 error message: 16: mandatory-script-verify-flag-failed (Signature must be zero for failed CHECK(MULTI)SIG operation)
.Here is raw transaction which I trying to broadcast
After some research I find out that this error may be related to hardforks reply protection, so your Bitcoin Cash version also may be affected (I don't have BCH to test it haha).
Here is wallet source and live wallet, I also can provide test network address with coins for tests (if you have time to do this, of course).
P.s. sorry if I ask some stupin noob question, I still learning :)