Bitcoin Forum
April 24, 2024, 01:11:30 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: offline signing of BCC transaction using normal (non-BCC) Electrum  (Read 374 times)
dmcdad (OP)
Sr. Member
****
Offline Offline

Activity: 302
Merit: 250



View Profile
August 08, 2017, 07:46:20 PM
Last edit: February 26, 2020, 03:14:32 PM by dmcdad
 #1

I understand the recommended process to extract BCC form an Electrum wallet: move BTC to new wallet first, install or restore old wallet with Electrum Cash, move BCC coins. Is it possible for Electrum to sign unsigned transactions created by Electrum Cash?
1713964290
Hero Member
*
Offline Offline

Posts: 1713964290

View Profile Personal Message (Offline)

Ignore
1713964290
Reply with quote  #2

1713964290
Report to moderator
1713964290
Hero Member
*
Offline Offline

Posts: 1713964290

View Profile Personal Message (Offline)

Ignore
1713964290
Reply with quote  #2

1713964290
Report to moderator
Even if you use Bitcoin through Tor, the way transactions are handled by the network makes anonymity difficult to achieve. Do not expect your transactions to be anonymous unless you really know what you're doing.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713964290
Hero Member
*
Offline Offline

Posts: 1713964290

View Profile Personal Message (Offline)

Ignore
1713964290
Reply with quote  #2

1713964290
Report to moderator
1713964290
Hero Member
*
Offline Offline

Posts: 1713964290

View Profile Personal Message (Offline)

Ignore
1713964290
Reply with quote  #2

1713964290
Report to moderator
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10498



View Profile
August 09, 2017, 02:49:51 AM
 #2

the first problem is, electrum (which is working on bitcoin chain) signs transactions differently than electron cash (which is working on bitcoin cash chain). it is the sighash flag they each use. the electron cash one has a sighash of SIGHASH_FORKID (i think appended to the SIGHASH_ALL). that means you need a cash wallet to sign it properly.

the second problem is that electrum is working on bitcoin chain Smiley
you can not push a bitcoin cash transaction to a bitcoin chain and electrum (the online one) does not connect to the other nodes.

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

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 09, 2017, 06:42:13 AM
 #3

TLDR: Is it possible for Electrum to sign unsigned transactions created by Electrum Cash?
TLDR: No.


Long Version:
The BCC devs changed the SIGHASH algorithm for BCC to provide 2-way replay protection... so a BCC transaction is not valid on BTC network... and a BTC transaction is not valid on BCC network.

This has already proven "problematic" for peeps with Electrum 2FA wallets, who created ElectronCash 2FA wallets (using the Electrum 2FA seed) and attempted to spend coins. TrustedCoin doesn't support BCC, so they were signing the transaction as a BTC transaction and the BCC network would then reject the transaction (wrong SIGHASH).

This is effectively the same situation that you're describing... attempting to sign a BCC transaction (from Electron Cash) with a BTC sig (from Electrum)


Also, just to help avoid confusion, the BCC wallet that was forked from Electrum is now called "Electron Cash"

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
coinling
Sr. Member
****
Offline Offline

Activity: 431
Merit: 251


View Profile
August 09, 2017, 02:49:02 PM
 #4


So why not just install electrum cash on your offline device ?

But for me it doesnt work anyway...

It would be great if offline signing on electrum cash works at all Smiley

HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
August 09, 2017, 03:16:25 PM
 #5

Have you tried cloning the repo and compiling it yourself or running from source?

They've put in a couple of patches since 2.9.2 to fix Offline Signing:
https://github.com/fyookball/electrum/commit/17c34fce7c8de5475a57c3b3d9d3ca0e4d949347
https://github.com/fyookball/electrum/commit/e8e37beeb46de6bba831a814c08187a921c55473

So either clone and compile/run, or wait until next release and it should work. Wink

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!