Bitcoin Forum

Bitcoin => Electrum => Topic started by: readyrocky on March 09, 2017, 12:13:56 PM



Title: BIP45 or 44?
Post by: readyrocky on March 09, 2017, 12:13:56 PM
Which derivation paths uses electrum to derive multisig addresses in both android/desktop?:

BIP 45:
Code:
m/45'/cosignerindex/0/0

or BIP44:
Code:
m / purpose' / coin_type' / account' / change / address_index


Title: Re: BIP45 or 44?
Post by: Abdussamad on March 09, 2017, 02:32:38 PM
Please read this post: https://bitcointalk.org/index.php?topic=1816926.msg18101203#msg18101203

It answers your implied questions too.


Title: Re: BIP45 or 44?
Post by: readyrocky on March 09, 2017, 03:05:39 PM
Please read this post: https://bitcointalk.org/index.php?topic=1816926.msg18101203#msg18101203

It answers your implied questions too.

you're awesome. thanks a lot.


Title: Re: BIP45 or 44?
Post by: readyrocky on March 09, 2017, 03:14:40 PM
Please read this post: https://bitcointalk.org/index.php?topic=1816926.msg18101203#msg18101203

It answers your implied questions too.

That would be for the standard wallets, but what about the multisigs? is there any cosigner index implied? that post didn't point that out.


Title: Re: BIP45 or 44?
Post by: Abdussamad on March 09, 2017, 04:00:57 PM
Please read this post: https://bitcointalk.org/index.php?topic=1816926.msg18101203#msg18101203

It answers your implied questions too.

That would be for the standard wallets, but what about the multisigs? is there any cosigner index implied? that post didn't point that out.

The derivation path is the same for multisig addresses. If you want to check for yourself then restore a wallet with the following xprivs:

a: xprv9s21ZrQH143K2j4ApvAWXbXnRQxxY1175NJFyzRSL3copkzRrmR9iFju2bPKMThZZ5X8dBHY8Hn So3Tp1mosezGpbhMxjFewR7fWsWqVuzd

b: xprv9s21ZrQH143K2dEFaB8GQ9FmTdLyMijhPngdimqyUiwXgh5rmh92n4x6JEWutHeDi2qAAHPv92S 3SuhNuktYZt22p2jgWMoK5WkDXBnkj4S

The above two are generated using bip32.org (passphrase a and b resp.)

The first address pubkeys of the above two are (m/0/0):


a0: 0223bb76b4e6844a6bde363057fab2aa5df5bc3a7e89c7e8124f6265f8080065fa
b0: 0246277670f2d0ff5e86af5e82f8f98d3e1cd90d0b0f252df6518fd842568a5551

And the resulting address is 3Nw1BqfMgdLDAsu67g74dJLxSPAxQEmfZz. This is what you will see in electrum as well as on coinbin:

https://coinb.in/#newMultiSig


Title: Re: BIP45 or 44?
Post by: readyrocky on March 09, 2017, 05:38:29 PM
Please read this post: https://bitcointalk.org/index.php?topic=1816926.msg18101203#msg18101203

It answers your implied questions too.

That would be for the standard wallets, but what about the multisigs? is there any cosigner index implied? that post didn't point that out.

The derivation path is the same for multisig addresses. If you want to check for yourself then restore a wallet with the following xprivs:

a: xprv9s21ZrQH143K2j4ApvAWXbXnRQxxY1175NJFyzRSL3copkzRrmR9iFju2bPKMThZZ5X8dBHY8Hn So3Tp1mosezGpbhMxjFewR7fWsWqVuzd

b: xprv9s21ZrQH143K2dEFaB8GQ9FmTdLyMijhPngdimqyUiwXgh5rmh92n4x6JEWutHeDi2qAAHPv92S 3SuhNuktYZt22p2jgWMoK5WkDXBnkj4S

The above two are generated using bip32.org (passphrase a and b resp.)

The first address pubkeys of the above two are (m/0/0):


a0: 0223bb76b4e6844a6bde363057fab2aa5df5bc3a7e89c7e8124f6265f8080065fa
b0: 0246277670f2d0ff5e86af5e82f8f98d3e1cd90d0b0f252df6518fd842568a5551

And the resulting address is 3Nw1BqfMgdLDAsu67g74dJLxSPAxQEmfZz. This is what you will see in electrum as well as on coinbin:

https://coinb.in/#newMultiSig

it works. thanks for your patience.


Title: Re: BIP45 or 44?
Post by: CompNsci on December 20, 2018, 10:54:52 PM
These examples work for Electrum 3.2.2, though there are some funky characters in the xprv addresses when you copy and paste them from the web page.


Title: Re: BIP45 or 44?
Post by: Abdussamad on December 21, 2018, 09:53:27 AM
These examples work for Electrum 3.2.2, though there are some funky characters in the xprv addresses when you copy and paste them from the web page.

Yes apparently the forum software has included a space in there. Remove it and you're good to go.