wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Does Copay really use BIP45 ?

Open NicolasDorier opened this issue 10 years ago • 9 comments

I've tried get back my private key from my copay backup.

I had no luck generating the same address than expected using BIP45:

So here are my questions:

  • Why does the xPrivKey and xPubKey of the JSON does not match ?

I tried to generate several path in the tree, I could not find a xPubKey matching a derived HD pubkey from the xPrivKey.

  • My key ring is : "derivationStrategy":"BIP45","account":0,"addressType":"P2SH", so I tried to generate 1-1 multi sig P2SH using the path m/45'/0/0/* by using both xPrivKey and xPubKey... why don't I find the same address than those derived by my copay wallet ?

NicolasDorier avatar Jan 01 '16 17:01 NicolasDorier

Depends on when you made the wallet.

Copay abandoned BIP45 a while back.

I can explain tomorrow, message me, I have some tools.

dabura667 avatar Jan 01 '16 18:01 dabura667

xPubKey is 45'. Don't manage to derive the addresses though.

My wallet is old version so it still use 45' P2SH 1-1. (The first generated address was P2SH 1-1 multi)

NicolasDorier avatar Jan 01 '16 18:01 NicolasDorier

Hooray, I found it, using key path 0x7fffffff ! (First key at m/45'/2147483647/0/0)

NicolasDorier avatar Jan 01 '16 18:01 NicolasDorier

Could you help me to get mine too? what do I need to do? Same bip45... p2sh..

kost123 avatar Jun 10 '16 15:06 kost123

https://bitpay.github.io/copay-recovery/

dabura667 avatar Jun 10 '16 15:06 dabura667

I would like to know why copay have abandoned bip45. @dabura667 what was the problem?

joemphilips avatar Mar 11 '18 04:03 joemphilips

  1. BIP45 solves the problem duplicate address generation. ie. A B and C make a multisig, but if they all generate the same path for receive address generation the A and B might send the same address to two different customers and if the invoice amounts are the same, both will think they have received when only one has sent.
  2. Therefore, BIP45 is only usefull when copayers can not communicate before generating every address.
  3. Since Copay started using BWS, everytime someone generates an address, it asks the BWS server, “which index should I generate?” So you are always communicating. (This is why Copay can not generate addresses offline)
  4. Since there is communication always, BIP45 only add extra overhead, and gives no benefit.

dabura667 avatar Mar 11 '18 06:03 dabura667

I don't understand why I have not been able to collect my bitpay on my wallet

Keensyst avatar Mar 11 '18 09:03 Keensyst

perfect! thanks.

joemphilips avatar Mar 11 '18 09:03 joemphilips