Monday, June 17, 2019

BCH sent to P2WPKH-P2SH Address, recovery shows mixed results...

I have a case here where a client of mine used a BitCoin ATM, and inadvertently used the 'BitCoin CASH' option instead of 'BitCoin', when he was using himself a Mycelium HD Wallet on a SegWit Address. Mistakes were made, but we have held onto the hope that at somepoint recovery would be possible.

With the May 15 Fork and the addition of SegWit recovery to the BitcoinABC codebase, recovery became possible, and the BCH chain survived an attempt at a double-spend attack by some thrifty miner(s) who realized that they could swoop in and take some of these trapped coins.

Since then, a couple guides have arisen that give an explanation of how to do a recovery, if those BCH sent to a 3xxxx Segwit address have the correct 'things', primarily a corresponding private key.

Here is my question/problem --- my BCH wallet is an HD Wallet created in Mycellium, and this was the 2nd 'account' in the wallet, and the 'second' key in that account. The BCH Derivation code is m/49'/0'/1'/0/1 . Problem is, I can only find a private key corresponding to the p2wskh-ps2h: key, and the p2sh: key in not importable in to Electron Cash wallet. How can I find a private key that corresponds to that wallet location in Electron Cash?

Here are some details:

3CSUDH5yW1KHJmMDHfCCWShWgJkbVnfvnJ

address the BCH was sent to... now, this address had BCH AND BTC sent to it at some point, and the BTC was spent, revealing the public key hash.

18dWL1ANKPwrhnbvNhrTDy8sxUzDGZ7YH2 is the 'legacy address' that Electron Cash spits out when I put the p2wskh-ps2h:"private key'

bitcoincash:pp67j94cfvnfg727etymlst9jts3uhfdkurqvtj2un is the public key address that Electron Cash shows the transaction occured on. If you put that key into the Electron Cash as a 'watch only' wallet, it still shows a 0.58 BCH Balance.

Problem is, I can't find out how to retrieve the private key for this address... the private key for 3CSUDH5yW1KHJmMDHfCCWShWgJkbVnfvnJ just gives the 18dWL1ANKPwrhnbvNhrTDy8sxUzDGZ7YH2 address in Electron Cash instead of bitcoincash:pp67j94cfvnfg727etymlst9jts3uhfdkurqvtj2un ....

Anyone think that have a hint where to check next? I have tried the BIP39 recovery site and can generate xprv/yprv keys, but none of these seem to be giving me the private key needed for the Derivation set of the HD wallet. Any help would be greatly appreciated!



No comments:

Post a Comment