What’s the magic key version bytes for BIP49
I’m implementing BIP49-compatible key derivation for
bitcoin-s, but I’m having a hard time finding the magic version bytes to use for the extended keys.
I’ve been looking at BIP49, but can’t find anything there.
Also, is there multiple schemes for deriving P2WPKH-nested-in-P2SH? I’ve been looking at the Samourai fork of BitcoinJ, Trezor’s implementation and the test vectors in BIP49, and I can’t get the vectors to pass by using the magic version bytes from Trezor/Samourai.
Maybe I’m confused by which magic bytes from Samourai corresponds to mainnet/testnet P2WPKH-nested-in-P2SH, so any clarification is appreciated here. From my understanding, the mainnet version bytes are
0x049D7CB2 (pub) and
0x049D7878 (priv) and testnet are
0x044a5262 (pub) and
As a final thing, any pointers to test vectors for BIP49 and BIP84 is appreciated. Currently I’ve come across the BIPs themselves, as well as SLIP132.