Author

Topic: How to sign offline transaction? (Read 1978 times)

newbie
Activity: 2
Merit: 0
March 04, 2017, 09:07:30 PM
#6
Hi friends, I am trying to run a transaction in electrum per console:

electrum payto -f 0.0003 -F 19LYUf4NSvmAq5ZbJKTAHWYbMFz4uj2AYf 1E1vDcXnYEnhP8jaJWbSnLDThEM5rmXLFn 0.001 --unsigned | electrum signtransaction --privkey [PRIVATE_KEY_FOR:19LYUf4NSvmAq5ZbJKTAHWYbMFz4uj2AYf] - | electrum broadcast -

However, the following error is generated:

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

I have noticed that the transaction before and after signed with the private key is identical, as if it were not signing, my version of electrum is: 2.7.18. If someone is so kind to help me, I thank you. Happy day.
legendary
Activity: 3472
Merit: 10611
February 26, 2017, 01:09:31 AM
#5
i just tested this with version 2.7.9 as offline version and i get the same error, that is weird and i think that was a bug in that version, and it is fixed when you upgrade to a newer version as i said above.

also
I then booted into Xubuntu 16.04 Live CD and
installed latest electrum,
 restored wallet from seed,
{here you download the blockchain headers and sync since you are not yet disconnected!}
disconnected the PC and
signed my transaction no problem, then powered off the PC.
full member
Activity: 170
Merit: 100
February 25, 2017, 05:22:04 AM
#4
I was trying to sign my transaction on Tails linux distro. It failed. I then rebooted tails and tried to upgrade electrum but that failed too.

I then booted into Xubuntu 16.04 Live CD and installed latest electrum, restored wallet from seed, disconnected the PC and signed my transaction no problem, then powered off the PC. Seems that the issue was with Tails.
legendary
Activity: 3472
Merit: 10611
February 25, 2017, 12:38:01 AM
#3
back up your seed and wallet file and then upgrade to the latest version (2.7.18) your problem should be solved.

i may be wrong about this but i think your cold storage can not find the keys to sign the transaction. there may be something missing from the unsigned transaction you are trying to sign because of version differences. that may be why it is trying to contact a server to ask that server what keys does your "transaction id" belong to.
legendary
Activity: 1806
Merit: 1164
February 24, 2017, 06:41:40 PM
#2
I have a watching wallet on Windows 10 on electrum 2.7.11. I have saved a transaction and saved it to my USB key and transferred it to my offline PC which is never connected to the internet. Ever.

I load electrum 2.7.9 on there and load the transaction from USB key. All good so far. When I click Sign, I get a message saying please wait, signing transaction... and then Error. Server did not answer.

Well, obviously because it's offline. How do I sign a saved transaction?

Did you follow this guide to the letter http://docs.electrum.org/en/latest/coldstorage.html
full member
Activity: 170
Merit: 100
February 24, 2017, 05:01:51 PM
#1
I have a watching wallet on Windows 10 on electrum 2.7.11. I have saved a transaction and saved it to my USB key and transferred it to my offline PC which is never connected to the internet. Ever.

I load electrum 2.7.9 on there and load the transaction from USB key. All good so far. When I click Sign, I get a message saying please wait, signing transaction... and then Error. Server did not answer.

Well, obviously because it's offline. How do I sign a saved transaction?
Jump to: