Author

Topic: Litecoin offline sign fail (Read 414 times)

legendary
Activity: 3710
Merit: 1586
June 24, 2017, 06:24:15 AM
#8
this forum is not for electrum ltc.
sr. member
Activity: 431
Merit: 251
June 24, 2017, 02:39:15 AM
#7
Ok I think this might cause the error:

When I create the transaction It looks like the pic on the left.

But somehow when I click copy or safe tx to file the code looks like this :

0100000001fb2cd05b7d660c2f8fbe0e62100277690553350ac273cb4b58b24e901826529100000 0001901ff16fd30c97824bd2146eb9b1c9fc1ed4e129966665d98b9ffffffff0280969800000000 001976a914396dbcf01f42aa07e2ef9bc4a3dec457b02c268188ac403d5a05000000001976a914c 97824bd2146eb9b1c9fc1ed4e129966665d98b988ac00000000

when I import this it doesn't have the input amount ?



there is the input missing, which you can't see on the right anymore ?

Maybe this is an issue on the new version of Mac.

Unfortunately the older stable version doesn't run on my Mac OS X at all, just error when starting.
HCP
legendary
Activity: 2086
Merit: 4363
June 24, 2017, 02:14:57 AM
#6
I wouldn't have thought that running different OSes would cause such issues, but I suppose it is possible.

When you were transferring the transaction, did you just save/load the .txn file? Have you tried using just the raw hex instead? Click "copy" instead of "save" and then paste the text into a plain text file... then transfer that to your Air Gapped machine... load the transaction from "text" and copy/paste the hex from the text file. Do the same after you've signed it... save the raw hex instead of the .txn file.

Also, have you tried using an older version of electrum-ltc instead of the latest beta?

If none of these suggestions work, all I can do is advise you to log an issue on the Electrum-ltc github issues list as pooya87 suggested
sr. member
Activity: 431
Merit: 251
June 24, 2017, 01:36:26 AM
#5
blockcypher gives:
Quote
"Error sending transaction: Error running script for input 0 referencing 91522618904eb2584bcb73c20a35530569770210620ebe8f2f0c667d5bd02cfb at 0: Script was NOT verified successfully.."

and blockr.io says:
Quote
There was an error pushing your transaction to network!
Did you sign your transaction? Is this double spend? Have you already sent this transaction?

If the OP_EQUALVERIFY is failing, that would indicate that the transaction has not been signed correctly... so you've either signed it with an incorrect private key, or you have not signed the transaction at all.

Are you sure your offline machine has the private key for: LdbE1VHGGRfcqDz7Yb4Dgpmw2xABFfwu4n ?


I definitely signed the transaction and I have the private key as well, just made a new wallet by importing this private key into electrum and it shows the correct receiving address.

Does it prolly have to do sth with different OS I use?
I use Mac OS X on my online computer and Windows on the air gapped one.

Both times the new beta of Electrum LTC though.
sr. member
Activity: 431
Merit: 251
June 24, 2017, 01:33:45 AM
#4
thanks for the response.

if you can broadcast it go ahead and show me how it worked , for me it doesn't Wink
HCP
legendary
Activity: 2086
Merit: 4363
June 24, 2017, 01:29:38 AM
#3
blockcypher gives:
Quote
"Error sending transaction: Error running script for input 0 referencing 91522618904eb2584bcb73c20a35530569770210620ebe8f2f0c667d5bd02cfb at 0: Script was NOT verified successfully.."

and blockr.io says:
Quote
There was an error pushing your transaction to network!
Did you sign your transaction? Is this double spend? Have you already sent this transaction?

If the OP_EQUALVERIFY is failing, that would indicate that the transaction has not been signed correctly... so you've either signed it with an incorrect private key, or you have not signed the transaction at all.

Are you sure your offline machine has the private key for: LdbE1VHGGRfcqDz7Yb4Dgpmw2xABFfwu4n ?
legendary
Activity: 3472
Merit: 10611
June 23, 2017, 11:46:45 PM
#2
that 0 is just the "output index" of the unspent transaction output that you are now spending. it is sometimes called vout. [1]
i can't see anything wrong with your transaction! you can also decode it in here [2] or here [3] and also push it to the network. i didn't push it since you may not want to, but if you did and it went through successfully and was confirmed then open up an issue here [4]

[1] https://bitcoin.org/en/developer-reference#outpoint
[2] https://live.blockcypher.com/ltc/decodetx/
[3] https://ltc.blockr.io/tx/push
[4] https://github.com/pooler/electrum-ltc/issues
sr. member
Activity: 431
Merit: 251
June 23, 2017, 06:38:07 PM
#1
I just tried to sign a transaction offline today with Electrum-LTC 2.8.3.5
and when I want to broadcast on my online computer it always fails getting this error:

error: The transaction was rejected by network rules.  (16: mandatory-script-verify-flag-failed (Script failed an OP_EQUALVERIFY operation))
[0100000001fb2cd05b7d660c2f8fbe0e62100277690553350ac273cb4b58b24e9018265291000000005f473044022061f6a22a2f61c947907e97e3b884677ce6119974250dc26bc104fa79489dd3f302203e96a1f8302da9f6373ac4ba7fac3ca144382e0cad0aa99aa1f316c7af5ea4c60116fd30c97824bd2146eb9b1c9fc1ed4e129966665d98b9ffffffff01c0d3f205000000001976a9147ea2381c52c5f3edc22c47c1f792894a073505ff88ac00000000]


The only thing I recognized when I create the transaction next to the input hash there is the number 0 usually when I use this for bitcoin it is 1 2 3 or whatever but not 0 ?

91522618...5bd02cfb:0    LdbE1VHGGRfcqDz7Yb4Dgpmw2xABFfwu4n

Any help?


Thanks,

coinling
Jump to: