Version prefixes for Segwit xpubs #680

pull shivaenigma wants to merge 6 commits into bitcoin:master from shivaenigma:master changing 1 files +33 −2
  1. shivaenigma commented at 10:57 AM on May 16, 2018: none

    Motivation

    Segwit wallets are still using xpub version prefix for segwit in p2sh/native segwit wallets. This is leading to incorrect address derivation from an xpub/xprv

    Reference Discussion

    Implementation

    Already in use by electrum, samouri and trezor

  2. Added segwit version prefixes 54a49132b3
  3. Formatted into table 8c349b89c6
  4. Formatted into table 3fccdb1f30
  5. Minor formatting d90f6bc0f2
  6. changed table formatting af66f0d1a6
  7. changed table formatting f0844d49ce
  8. shivaenigma cross-referenced this on May 16, 2018 from issue Electrum standard wallet on testnet give a xpub (3.0.3) by NicolasDorier
  9. afk11 commented at 12:01 PM on May 16, 2018: contributor

    Hey @shivaenigma - thanks for the thought, but we don't modify BIP's to widen the scope after they have been finalized - given there already complete implementations of BIP32 in the wild.

    Also these prefixes are already defined in SLIP-0132, and they should remain there IMO, unless someone wants to submit a standalone BIP for it. But the prefixes being defined in the SLIP repository haven't negatively affected their uptake. As you note, three wallets are using them already.

    I think this PR is not acceptable due the above (though it's certainly not my place to decide that), but it may be acceptable if presented as a new BIP.

  10. shivaenigma commented at 1:02 PM on May 16, 2018: none

    @afk11 Totally Understand point about not modifying existing BIP. No Problem

    I will create a new BIP

  11. luke-jr commented at 8:34 AM on May 20, 2018: member

    Please open a new PR when you have a new BIP draft ready, following review of the draft on the bitcoin-dev ML.

  12. luke-jr closed this on May 20, 2018

  13. ecdsa commented at 9:06 PM on May 26, 2018: none

    @SomberNight you should submit your text here

  14. SomberNight commented at 9:20 PM on May 26, 2018: contributor

    Indeed we have a draft for this as a new BIP at https://github.com/SomberNight/bips/blob/bip-xpub-versionbytes-extension/bip-xpub-versionbytes-extension.mediawiki I think I'll read it a few more times and potentially clean it up a bit, and submit it to the mailing list soon

  15. shivaenigma commented at 6:52 AM on May 28, 2018: none

    @SomberNight Thanks ... looks good .. I have few tests here. Feel free to copy

    Looking forward to the submission to the mailing list

  16. clarkmoody commented at 2:09 PM on May 28, 2018: contributor

    Why not submit updates and changes to SLIP-0132? There are (a few) test vectors and a generation code there as well.

  17. shivaenigma cross-referenced this on Feb 16, 2021 from issue Please use version bytes for bech32 xpub by shivaenigma
  18. shivaenigma cross-referenced this on Feb 16, 2021 from issue zpub / ypub keys by dzid26

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bips. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-16 07:10 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me