Bitcoin Forum
May 05, 2024, 12:11:35 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Unable to sign transactions from command line: UnicodeDecodeError  (Read 147 times)
military-lunch (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 14


View Profile
September 13, 2020, 10:33:12 AM
Merited by ABCbits (1)
 #1

I use Electrum (full GUI version) for my watching only wallet on a Debian 10 machine. I have my cold storage wallet on a Raspberry Pi running the command line version of Electrum.

Using version 3.3.8 I was able to export an unsigned.txn from the watching wallet and sign it using the Pi cold wallet.

I have just upgraded to version 4.0.3 on both machines. Now the export from the watching wallet is in .psbt format (it used to be .txn format). When I try to sign this on the Pi command line I get the following error:

UnicodeDecodeError: 'utf-8' codec can't decode bute 0xff in position 4: Invalid start byte

Please could anyone help me resolve this problem?

Your help is much appreciated.
1714911095
Hero Member
*
Offline Offline

Posts: 1714911095

View Profile Personal Message (Offline)

Ignore
1714911095
Reply with quote  #2

1714911095
Report to moderator
1714911095
Hero Member
*
Offline Offline

Posts: 1714911095

View Profile Personal Message (Offline)

Ignore
1714911095
Reply with quote  #2

1714911095
Report to moderator
Bitcoin mining is now a specialized and very risky industry, just like gold mining. Amateur miners are unlikely to make much money, and may even lose money. Bitcoin is much more than just mining, though!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714911095
Hero Member
*
Offline Offline

Posts: 1714911095

View Profile Personal Message (Offline)

Ignore
1714911095
Reply with quote  #2

1714911095
Report to moderator
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
September 13, 2020, 10:45:36 AM
 #2

I would suggest that you log this error (with the appropriate details of the devices being used, relevant OSes and application versions etc) over on the Electrum github "Issues" register, the devs are generally way more active over there.

Refer: https://github.com/spesmilo/electrum/issues

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
military-lunch (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 14


View Profile
September 13, 2020, 08:00:56 PM
Merited by ranochigo (4), ABCbits (2), o_e_l_e_o (2), Husna QA (2), HCP (2), igor72 (1)
 #3

I have discussed this with the developers and they indicate that the binary unsigned transaction files output by Electrum from v4 are not compatible with python piping scripts used to import them on the command line.

The simple workaround is to create the unsigned transaction, and instead of saving to file, use "Export > Copy to Clipboard". Paste the unsigned transaction as text into a text editor, and then save that text to a file.

Electrum command line can then sign the transaction using this saved file with the normal command of the form:

cat unsigned.txn | python3 Electrum-4.0.3/run_electrum signtransaction -o -w WALLETNAME - > signed.txn

 (assuming the unsigned transaction is in a file named 'unsigned.txn')
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!