electrum icon indicating copy to clipboard operation
electrum copied to clipboard

2FA OTP might expire while signing large transactions

Open cryptoforex opened this issue 9 years ago • 5 comments

Hello,

I try to send my BTC from my 2FA wallet and it's stay many time in signing transaction and after 1 min appears invalid OTP, it's like 2fa code is wrong but I think that is because it stay many time signing the transaction and the code changes during this time. Help me please. Thanks.

cryptoforex avatar Dec 01 '17 20:12 cryptoforex

What kind of transaction are you trying to make so that it takes that long to sign it? How many inputs/outputs are there?

In any case, I have not tested this, but the problem looks to be real.

The signing process is:

  • user is prompted for the 2FA code
  • local cosigner signs tx
  • partially signed tx is sent to TrustedCoin server, along with 2FA code from before

If the local tx signing takes too long, the 2FA code might expire.

https://github.com/spesmilo/electrum/blob/80f99b68e0f32b94238e030658a6a3170118ab21/gui/qt/main_window.py#L1405-L1423

https://github.com/spesmilo/electrum/blob/80f99b68e0f32b94238e030658a6a3170118ab21/plugins/trustedcoin/qt.py#L90-L102

https://github.com/spesmilo/electrum/blob/80f99b68e0f32b94238e030658a6a3170118ab21/plugins/trustedcoin/trustedcoin.py#L272-L288

SomberNight avatar Dec 03 '17 20:12 SomberNight

@badmofo can you check this?

ecdsa avatar Dec 03 '17 21:12 ecdsa

Hello,

Were 46 little transactions received from mining in my wallet. I finally solved the issue restoring a new wallet without 2fa but I think it's not the good way. Thanks.

cryptoforex avatar Dec 04 '17 10:12 cryptoforex

@SomberNight I agree, we should sign locally before asking second factor

ecdsa avatar Dec 04 '17 11:12 ecdsa

There was another report of this on reddit

SomberNight avatar May 08 '18 17:05 SomberNight