Proposal: bip32 version bytes for segwit scripts



Summary:

BIP32 extended public/private keys have version bytes that are used to indicate the user visible xpub/xprv prefix. The recommendation is to use different version bytes for other networks such as tpub/tprv for testnet. A proposal has been made to use additional version bytes to indicate the type of output script used with the public keys. The proposed prefixes include xprv, xpub, yprv, ypub, zprv, and zpub. The argument against using xpub/xprv serialization as a format for keys is countered by the existence of version bytes and their use to signal whether keys will be used on testnet or mainnet. If the script type is not signaled in the version bytes, wallet developers may resort to using the bip32 child number field in combination with bip43/bip44/bip49. The proposed changes should be user visible because users are exposed to master public keys.


Updated on: 2023-06-12T18:03:22.110102+00:00