junction icon indicating copy to clipboard operation
junction copied to clipboard

Allow configurable BIP32 derivation paths

Open justinmoon opened this issue 6 years ago • 4 comments

justinmoon avatar Aug 29 '19 02:08 justinmoon

FYI - below paths should give fairly good compatibility with other multisig implementations.

Legacy (P2SH) m/45'/0/0/0 Segwit Compatibility (P2WSH-P2SH) m/48'/0'/0'/1' Native Segwit (P2WSH) m/48'/0'/0'/2'

dasource avatar Sep 02 '19 11:09 dasource

Agreed

On Mon, Sep 2, 2019 at 6:21 AM dasource [email protected] wrote:

FYI - below paths should give fairly good compatibility with other multisig implementations.

Legacy (P2SH) m/45'/0/0/0 Segwit Compatibility (P2WSH-P2SH) m/48'/0'/0'/1' Native Segwit (P2WSH) m/48'/0'/0'/2'

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/justinmoon/junction/issues/12?email_source=notifications&email_token=ABBCQBKI4Q6AAAA3KFXOLVDQHTZKDA5CNFSM4IR3X4PKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5VRGUQ#issuecomment-527110994, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBCQBM5T4CV3AYAGPXL2J3QHTZKDANCNFSM4IR3X4PA .

justinmoon avatar Sep 02 '19 21:09 justinmoon

I wouldn't necessarily make them configurable, but they definately should follow ~the~ some standard. In addition to what @dasource points out for address type (44/49/84), receive should use ...0/n and change should use .../1/n. It currently uses 0 for both.

It does seem to correctly get "married" paths, i.e. the same derivation for each device. You may also want to sort by fingerprint. I'm not at all up to date on good conventions though. Maybe @instagibbs has some ideas?

Sjors avatar Sep 04 '19 20:09 Sjors

@Sjors Correct. I haven't implemented change addresses yet. Configurable BIP32 paths would really only be useful if Junction is used as a recovery tool. Definitely not a priority.

justinmoon avatar Sep 04 '19 21:09 justinmoon