New serialization/encoding format for key material



Summary:

The proposal discusses an error tolerant encoding format for key material up to 520 bits with a minimal amount of metadata. The format includes a version bit, key-birthday expressed in days since genesis, script type restrictions, and gap limit delta. The encoding format must hint the total length and allow calculating the key material length. Bech32 is used as the encoding format, and different HRP prefixes are used for mainnet and testnet keys. The proposal aims to replace the WIF standard and make BIP 178 obsolete. The recovery of a wallet by its extended private master key is discussed as a complex task with risks of failing to recover all available funds. It is suggested that recovering funds based on the sole existence of an xpriv (or seed) without further metadata is a fragile concept. Additionally, the current BIP44 gap limit is set to 20, which can result in funds being destroyed or not detected during recovery. High load merchants may need a different gap limit value than individuals who create a transaction once a year. Future proposals may want to limit an extended key to a single derivation scheme.


Updated on: 2023-06-13T02:58:26.772485+00:00