bips
bips copied to clipboard
[BIP322] Change private key format from wif to hex
The specification for deriving a bech32 address from a wif format private key does not appear to be standardized.
Some wallets, such as Electrum, set a marker in the first byte, and BIP-0178 propose an extended WIF format.
The WIF data currently described is ambiguous as to which address is should be derived, so it would be better to describe it as a hex value.
The WIF (Wallet Import Format) is a standard for representing private keys. Whatever address type you derive from them is literally up to you. Attaching an address hint to the private key serialization is precisely what the two instances you pointed to are doing, but they're still WIF. Switching to hex seems like a downgrade, as it unnecessarily removes the checksum built into WIF, and such, for no particular reason.
@kallewoof Close this?
It seems to me that the BIP author is in disagreement with this change suggestion. I recommend that this PR be closed after 2024-05-10 unless there is further activity here that indicates otherwise.