OutCast3k / coinbin

Javascript Bitcoin Wallet. Supports Multisig, Stealth, HD, SegWit, Bech32, Time Locked Addresses, RBF and more!
https://coinb.in/
MIT License
907 stars 622 forks source link

64: scriptsig-not-pushonly (when trying to braodcast) #76

Open bolt565 opened 7 years ago

bolt565 commented 7 years ago

I made a raw transaction and then signed it with my private key that i have exported from another wallet trying to do a double spend to unstuck some bitcoins, and i get a

64: scriptsig-not-pushonly

what does this mean? where can i find info to debug it?

dabura667 commented 7 years ago

You have a non-push OP code in your scriptSig, which means you either:

  1. Have a weird redeemscript.
  2. You copied a raw transaction from bitcoin core or Electrum or somewhere else.

The only raw transactions coinbin can sign are raw transactions created by coinbin. Sorry.

weex commented 7 years ago

Possibly related https://github.com/OutCast3k/coinbin/issues/73

SumuduF commented 7 years ago

FWIW I saw the same error when I "signed" with the wrong key. I missed the obvious clue that the signing procedure didn't actually add anything to the transaction.

Maybe there should be a sanity check during signing for this?