Bitcoin Forum
November 16, 2024, 01:32:34 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: BTC vs BCH hardware wallet public address generation  (Read 189 times)
hashslinger (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 7


View Profile
June 02, 2019, 12:03:58 AM
Merited by LoyceV (2), ABCbits (1), o_e_l_e_o (1)
 #1

I accidentally sent some BTC to a BCH address. It is an insignificant amount, but it made me realize that Electrum (legacy) wallets do not generate addresses in the same order as Electron or perhaps they use a different depths. If I recall correctly there are a few numbers which can be changed when generating a wallet 'x/y/z' where x is the BIP implementation and z is the depth.  Presumably, I should be able to see the BTC in Electrum if the client searches the blockchain for transactions.

Electrum: 3.3.6
Electron:   3.3.1
Operating System: Linux

I didn't provide the other specs, because I am more interested in understanding the problem than recovering an insignificant amount of BTC. In Electrum I loaded the transaction from the blockchain via Tools -> Load transaction which did not prompt Electrum to search if it could generate the address which received UTXO in that transaction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3542
Merit: 6886


Just writing some code


View Profile WWW
June 02, 2019, 12:45:48 AM
Merited by bones261 (2), ABCbits (1)
 #2

Electrum and Electron Cash both use BIP 44 and SLIP 44 for determining the derivation path to use. So Electrum uses m/44'/0'/0'/0/* as that's the one for Bitcoin. Electron Cash uses m/44'/145'/0'/0/* as that is the one for Bitcoin Cash.

hashslinger (OP)
Newbie
*
Offline Offline

Activity: 12
Merit: 7


View Profile
June 02, 2019, 02:39:57 AM
 #3

I see now. https://developer.bitcoin.com/tutorials/account-creation/

m / purpose' / coin_type' / account' / change / address_index

Thanks. At the moment, the term "key derivation path" had slipped my mind, so I couldn't search it efficiently.
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!