0
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 0x044a4e28 (priv).
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.
It's always a good practice to post multiple questions separately, so that people who know one but not the other can help you out. For example, I do not have the document for test vectors handy but I have tried to answer other questions. I'll edit my answer if and when I get the test vectors. – Ugam Kamat – 2019-04-30T14:32:20.577