Bitcoin Forum
May 25, 2024, 07:56:05 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need to restore to electrum again (3rd topic, can't find the others lol)  (Read 211 times)
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 15, 2019, 04:23:40 PM
 #1

I've been going through the front page here trying to find the derivation path! I remembered everything but that and now I'm stuck with a seed on my phone and no idea how to use it (I'm restoring on my raspberry pi for security reasons, can anyone help me the schilbach wallet fees are a bit high).
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 15, 2019, 08:57:48 PM
 #2

... and now I'm stuck with a seed on my phone and no idea how to use it (I'm restoring on my raspberry pi for security reasons, can anyone help me the schilbach wallet fees are a bit high).
What exactly are you trying to restore from? As far as I know, Bitcoin Wallet for Android does not provide a seed mnemonic at all... it simply uses (encrypted) backup files? Huh

Are you sure that this "seed" that you have is from the Bitcoin Wallet for Android? Or did you get it from another wallet?

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 15, 2019, 10:42:00 PM
 #3

No it came from that wallet and I've done the restore twice before but I don't exactly know where the wallet file is (but I definitely have the seed and it's definitely worked twice before). The trick is to take the proto bug wallet, convert it to bitcoinj and then dump the seed...
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 16, 2019, 01:40:06 AM
 #4

Ahhhh ok, right, you extracted the seed from the backup wallet file by decrypting and then dumping it out using bitcoinj... fair enough.

In that case... in Electrum, try using "Legacy" as the script type, and setting the Derivation Path to: m/0'

That should generate the correct addresses.

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 16, 2019, 02:30:29 AM
 #5

Yeah I tried m/0' and m/0'/0' I think...

It's potentially m/0'/0 I was just wondering if anyone knew of the top of their heads so I don't have to brute force it.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 16, 2019, 04:44:36 AM
 #6

I tested it... it is definitely m/0' for the wallet I created today.

The "full" path to the first address is actually m/0'/0/0... Electrum seems to automagically add the first "0" when it starts looking for "receive" addresses... and then the 2nd "0" for address at index 0.

If you use bitcoinj and do a dump with --dump-privkeys, you'll see something like this right at the end of the dump:
Quote
addr:1K2rCAnAvqHETgG9rHrzysJ4PPue9Lr7EQ  hash160:c5cbbe73ae2c4d1ce0eaaa5303b27d9c0d120292  (M/0H/0/0)
That is the address I see in the app when I click the QRCode to see my receive address... and the address that Electrum generates when I use m/0' as the derivation path when importing


For reference, the full dump of my testing wallet is:
Code:
Wallet
  WARNING: includes private keys!
Balances:
  0.00 BTC ESTIMATED
  0.00 BTC AVAILABLE
  0.00 BTC ESTIMATED_SPENDABLE
  0.00 BTC AVAILABLE_SPENDABLE
Transactions:
  0 pending
  0 unspent
  0 spent
  0 dead
Last seen best block: 567262 (2019-03-16T01:11:02Z): 0000000000000000001da8b54a299a642ba92d50f0d20078f9781c1accd9be9d

Keys:
Earliest creation time: 2019-03-15T20:52:59Z
Seed as words:     shed cruel trap raccoon planet lecture harvest night narrow grass surround noble
Seed as hex:       3bd7c9cc0397b3023ba83fcbd1deec5fef1c68a3ed947ee7a326f186fe005f5f6c58040d39df3f32864f4fb2b8557caa4bc41dde1e6b2eb639d0fa4ff5a45815
Seed birthday:     1552683179  [2019-03-15T20:52:59Z]
Ouput script type: P2PKH
Key to watch:      xpub69G3fM82T2Xmx9VsUeeYWnmYRGGrQrD3pCe2msvVDf4MhRZ5j9HsnFmJvpMBmMX9wZJ8JdSwzU8am2MA8RSttzZ1eUEHMuVtCii9JkR7yLy
Lookahead siz/thr: 100/33
  addr:1J1eAbKcRQTsgwzhn8buqUM8pPQ8A2duRm  hash160:ba99299424eda8ed8b453835738850ade43fcea0  (M, root)
  DeterministicKey{pub HEX=02f0a36dde523f7d7cff5232f3f0ddaf61778e40ee1c47cc3e8cb82b8c46300fa9, priv HEX=c8866c5513583249996bc6b0d05571d2322e7c7f85d6fdbe00fa47d966bbba57, priv WIF=L3wWGbkcaQeG5iCJcnJrXgwEovMLn2HsJktG4TqtvvH1c3hg4wbG, creationTimeSeconds=1552683179, isEncrypted=false, isPubKeyOnly=false}
  addr:1LDUZuuv37oPWE1NU2EnFjvVVgrTEe3XtF  hash160:d2c664c1efad9bb8ba6d44a5893bd7c911a67897  (M/0H, account)
  DeterministicKey{pub HEX=03598fe12ea45f4f669242079f59b6233ec0a2ae3a73162bf650c8afebab0b2fd7, priv HEX=2a8c3c0b102a27142fffbc8d271f242ea246cbb3f4a797bef727c437508506aa, priv WIF=KxeRDArBfhAPyTmzQgRfDua5tX1p9ogh2an9B358sMbnMyNJfLSw, isEncrypted=false, isPubKeyOnly=false}
  addr:14qUE7sA8ZvAYXsxi3RhmWfMVKvwjiYQLv  hash160:2a13121f118f0861f5a9720601b5c2698564c2ec  (M/0H/0, external)
  DeterministicKey{pub HEX=039f5643f48c77d434bfbdbcac72fe72dfef272caf7db901a7932963b4ab041180, priv HEX=aca6d3c371812845e01af4ff6dfcf1a08aa69ade7d41a1d437827775c3f8658f, priv WIF=L31KhNsP3orEfLRZFAzTPAcuUa7HttyAN1iA3pTsU3DZjPAuZPTn, isEncrypted=false, isPubKeyOnly=false}
  addr:1P1tUWAYAxv68wA8nfmXA1fjQUM6M3mdMF  hash160:f17dbc58d385fc27047904337c3fe79f3421fdd2  (M/0H/1, internal)
  DeterministicKey{pub HEX=034049298d152957146885596e731e5d94b80013558341fe82648562f19cb6e745, priv HEX=579c14f425a527cf9adfcdd4f58286dd9af9bc0586976c0e47dbcbd5e44880d8, priv WIF=KzA1guaT4BmrJsW7n4DFx7kn7BTMCLkEim3tnqbxd6Qeawdy1voR, isEncrypted=false, isPubKeyOnly=false}
  addr:1K2rCAnAvqHETgG9rHrzysJ4PPue9Lr7EQ  hash160:c5cbbe73ae2c4d1ce0eaaa5303b27d9c0d120292  (M/0H/0/0)
  DeterministicKey{pub HEX=02269536b52e9f2ca55b60f191b04fee96454fc9c7da046e2520cf0723456cafed, priv HEX=9b32a1c99c54379935bef01c8ab56015f7280337e7f200b50db8f1c9166c03cc, priv WIF=L2RPsKyWe1pERXbxLRmNJrT99Uv25nJokNNLCf6TsSZ4jQKdoavV, isEncrypted=false, isPubKeyOnly=false}

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 16, 2019, 07:20:09 PM
 #7

Aha!

I put the seed into I Coleman (after pulling out the ethernet) and found that it says there's a checksum error. I'll probably have to go back and restore it although maybe I'll just try it on a different computer since it could be the arm chip that is failing.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 17, 2019, 01:00:59 AM
 #8

Wait... did Electrum not give you a "BIP39 checksum: failed" message on the seed input screen? Huh

That would be extremely odd if it didn't... I mean, I know it will happily let you use seeds with a "failed" checksum when you have BIP39 seed selected... but it should at least warn you! Or were you trying to restore on the command line on the Pi?

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 17, 2019, 01:39:28 AM
 #9

Wait... did Electrum not give you a "BIP39 checksum: failed" message on the seed input screen? Huh

That would be extremely odd if it didn't... I mean, I know it will happily let you use seeds with a "failed" checksum when you have BIP39 seed selected... but it should at least warn you! Or were you trying to restore on the command line on the Pi?

No I was doing it on electrum gui. Not sure what I've done wrong. I might just have to see if I can salvage the old laptop it's on...

It did give a warning message but I wasn't looking as it printed it in the same place as a correct word phrase would.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
March 17, 2019, 01:44:03 AM
 #10

LOL... 10/10 for observation skills... Just glad I'm not the only one who has done this sort of thing! hahaha Tongue

Guess you'll need to fire up the old btcrecover and use the seedrecover.py script to figure out what your mistake is... if you know at least one address (that is close to the beginning of the derivation path), it should be able to figure it out in a reasonable amount of time.

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


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 17, 2019, 05:53:07 PM
 #11

LOL... 10/10 for observation skills... Just glad I'm not the only one who has done this sort of thing! hahaha Tongue

Guess you'll need to fire up the old btcrecover and use the seedrecover.py script to figure out what your mistake is... if you know at least one address (that is close to the beginning of the derivation path), it should be able to figure it out in a reasonable amount of time.

I have the wallet on my phone so I can just use another backup file (that one was 2 years ago so I'm not surprised it's wrong). I'm curious as to what it was for now though...

I'm trying to avoid paying the high ish fees because they make it 2/3 of my profit margin Sad.

And 0.002 as apposed to 0.0002.
BitMaxz
Legendary
*
Offline Offline

Activity: 3262
Merit: 2977


:( My PC broke due trying to recover an old wallet


View Profile WWW
March 19, 2019, 11:45:20 PM
Last edit: March 20, 2019, 12:29:57 AM by BitMaxz
 #12

Any idea of the version of OpenSSL they used. I found this https://unix.stackexchange.com/questions/403314/bad-magic-number-on-decrypt which says they've changed magic numbers at least once.

I used OpenSSL for decrypting encrypted keys like private/wif keys generated from coinb.in with AES-256 Password encrypted. What are you trying to achieve using OpenSSL?

Are you trying to decrypt the seeds?

I don't know what version exactly you need but I think you must always use the latest version of OpenSSL because it supports most of the encrypted text or file.

Did you try something like this code.

Code:
enc -d -aes-256-cbc -p -md md5 -a -in plain1.txt -out plainout1.txt

Plain1.txt must be your seed and plainout1.txt is the decrypted file or text generated from plain1.txt.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
jackg (OP)
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
March 20, 2019, 01:04:09 AM
 #13

Ah thanks it worked better to stipulate the output file. It was fiddling with the kernel before then and seemed quite interesting but not something that was helpful.

I now have the file... I'll have to convert it later since my pi only has java 1 and any attempt to update it fails...
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!