Bitcoin Forum
June 25, 2024, 08:37:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum and Nano S via Offline computer  (Read 202 times)
ragnar dannesk gold (OP)
Jr. Member
*
Offline Offline

Activity: 32
Merit: 37


View Profile
September 13, 2019, 12:32:32 AM
Last edit: September 13, 2019, 11:13:59 PM by ragnar dannesk gold
Merited by suchmoon (4), OmegaStarScream (1), BitMaxz (1), o_e_l_e_o (1)
 #1

Is it possible to use Electrum and a Nano S to sign unsigned transactions via a permanently offline computer?

I am having some trouble with this:

Setup:

With an online computer using Electrum watch-only wallet, Electrum Personal Server, Bitcoin Core, and a USB to save the unsigned transaction to.

Method:

Transaction is created using the UTXO inputs and the output I want. This transaction is then saved to a USB and transported to the offline computer which has the Nano S plugged in.

I have been unable to get unsigned transactions to be signed by Electrum and Nano S on an offline machine (never connected). This seems like something that should be possible? The Nano S is connected (green light on Nano S symbol in Electrum, and Electrum is offline (red circle).

Obviously there is no transaction history in the offline computer, is this causing the issue? If so, it seems odd that this is required.

Error:

"no interface to do request on ... gave up"


I am unsure whether it is due to Electrum not having UTXO's history or due to another part of the set-up requiring a direct connect.


I have read through https://github.com/spesmilo/electrum/issues/3302 and it doesn't seem to be clear either way. It appears that it isn't as straight forward as I'm thinking, but Sombernight states "Ledger:
legacy does not work, no plan to implement support
✔segwit works" and I'm trying it with P2SH so I assume it should work?

Any help would be much appreciated, but please save yourself the lazy non-answer of 'a Nano S is an offline computer'. I am aware of that line of thinking, it isn't answering my question.




Solved: Adding the flag --offline in my Electrum shortcut fixed it and allowed signing the transaction completely offline.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3132



View Profile
September 13, 2019, 09:09:31 AM
 #2

✔segwit works" and I'm trying it with P2SH so I assume it should work?

Yes, it should work if you move your funds to a nested SegWit address. You will also benefit from slightly lower fees. Some of my funds are on a native SegWit address on my Trezor. I can check for you if it works. It should be the same for Ledger.
NeuroticFish
Legendary
*
Offline Offline

Activity: 3710
Merit: 6432


Looking for campaign manager? Contact icopress!


View Profile
September 13, 2019, 01:17:50 PM
Merited by suchmoon (4), ragnar dannesk gold (3)
 #3

I have read through https://github.com/spesmilo/electrum/issues/3302 and it doesn't seem to be clear either way.

I didn't encounter this issue, but from what I've read here and there, you should:
* make sure you are working with SegWit addresses, else it won't work -> see https://github.com/spesmilo/electrum/issues/3302#issuecomment-379303347
* make sure you run Electrum with --offline flag -> see https://www.reddit.com/r/Electrum/comments/ciieft/issue_with_offline_signing/

I didn't find anybody telling that they've solved this issue by doing this, so I don't know more...

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
bitmover
Legendary
*
Offline Offline

Activity: 2338
Merit: 6028


bitcoindata.science


View Profile WWW
September 13, 2019, 01:44:30 PM
 #4

Method:

Transaction is created using the UTXO inputs and the output I want. This transaction is then saved to a USB and transported to the offline computer which has the Nano S plugged in.

I have been unable to get unsigned transactions to be signed by Electrum and Nano S on an offline machine (never connected). This seems like something that should be possible? The Nano S is connected (green light on Nano S symbol in Electrum, and Electrum is offline (red circle).

I don't the answer to your question.

however, I was thinking about your method and setup.

It is interesting to do what you are trying to do, but I do not see really a reason to do it (only for curiosity or experimental reasons).
When you plug your usd stick from an online computer to your offline computer, you may be infecting it with malware from the online computer.

Doesn't this defeat the whole purpose of an offline computer?

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Rath_
aka BitCryptex
Legendary
*
Offline Offline

Activity: 1876
Merit: 3132



View Profile
September 13, 2019, 02:48:10 PM
Last edit: September 13, 2019, 02:59:23 PM by BitCryptex
 #5

Doesn't this defeat the whole purpose of an offline computer?

This could be mitigated by using QR codes for loading unsigned transactions and broadcasting the signed ones. Anyway, that's very unlikely to happen and the malware can't do any harm to the Nano S.
DireWolfM14
Copper Member
Legendary
*
Offline Offline

Activity: 2198
Merit: 4242


Join the world-leading crypto sportsbook NOW!


View Profile WWW
September 13, 2019, 03:04:39 PM
 #6

I am unsure whether it is due to Electrum not having UTXO's history or due to another part of the set-up requiring a direct connect.

If you don't have any unspent transactions in your offline wallet, that could be your problem right there.  I've never tried to use a ledger offline, but I did experiment with Electrum and my KeepKey that way when I first got it.  It worked, but I recall running into an issue that was resolved after loading the transactions into my offline wallet.

  ▄▄███████▄███████▄▄▄
 █████████████
▀▀▀▀▀▀████▄▄
███████████████
       ▀▀███▄
███████████████
          ▀███
 █████████████
             ███
███████████▀▀               ███
███                         ███
███                         ███
 ███                       ███
  ███▄                   ▄███
   ▀███▄▄             ▄▄███▀
     ▀▀████▄▄▄▄▄▄▄▄▄████▀▀
         ▀▀▀███████▀▀▀
░░░████▄▄▄▄
░▄▄░
▄▄███████▄▀█████▄▄
██▄████▌▐█▌█████▄██
████▀▄▄▄▌███░▄▄▄▀████
██████▄▄▄█▄▄▄██████
█░███████░▐█▌░███████░█
▀▀██▀░██░▐█▌░██░▀██▀▀
▄▄▄░█▀░█░██░▐█▌░██░█░▀█░▄▄▄
██▀░░░░▀██░▐█▌░██▀░░░░▀██
▀██
█████▄███▀▀██▀▀███▄███████▀
▀███████████████████████▀
▀▀▀▀███████████▀▀▀▀
▄▄██████▄▄
▀█▀
█  █▀█▀
  ▄█  ██  █▄  ▄
█ ▄█ █▀█▄▄█▀█ █▄ █
▀▄█ █ ███▄▄▄▄███ █ █▄▀
▀▀ █    ▄▄▄▄    █ ▀▀
   ██████   █
█     ▀▀     █
▀▄▀▄▀▄▀▄▀▄▀▄
▄ ██████▀▀██████ ▄
▄████████ ██ ████████▄
▀▀███████▄▄███████▀▀
▀▀▀████████▀▀▀
█████████████LEADING CRYPTO SPORTSBOOK & CASINO█████████████
MULTI
CURRENCY
1500+
CASINO GAMES
CRYPTO EXCLUSIVE
CLUBHOUSE
FAST & SECURE
PAYMENTS
.
..PLAY NOW!..
bitmover
Legendary
*
Offline Offline

Activity: 2338
Merit: 6028


bitcoindata.science


View Profile WWW
September 13, 2019, 04:23:42 PM
 #7

Anyway, that's very unlikely to happen and the malware can't do any harm to the Nano S.

I agree, but if OP though like that he wouldn't even use an offline computer after all.

As he said:
...please save yourself the lazy non-answer of 'a Nano S is an offline computer'. I am aware of that line of thinking...

So, he is assuming that a malware from an online enviroment can somehow harm ledger nano.

However, what is the point of this? As an experiment is may be interesting, but it doesn't make much sense to load data from an online computer to an offline computer, as the malware could affect the offline computer this way.

QR codes would make more sense.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
ragnar dannesk gold (OP)
Jr. Member
*
Offline Offline

Activity: 32
Merit: 37


View Profile
September 13, 2019, 11:12:27 PM
 #8

Thank you to everyone who responded.

* make sure you run Electrum with --offline flag

NeuroticFish, you were right.

Adding the flag --offline in my Electrum shortcut fixed it and allowed signing the transaction completely offline.

Thank you very much for your time.
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!