I implements the BIP49 compatible key derivation for
bitcoin-s, but I have trouble finding the magic version bytes to use for extended keys.
I have consulted BIP49, but I do not find anything there.
In addition, are there several schemas to derive P2WPKH-nested-in-P2SH? I've looked at BitcoinJ's Samourai fork, Trezor implementation and test vectors in BIP49, and I'm having trouble passing vectors using the Trezor / Samourai magic version bytes.
Perhaps I am confused as to the Samurai magic bytes that correspond to mainnet / testnet P2WPKH-nested-in-P2SH, so any clarification is appreciated here. From my understanding, the version bytes of the main network are
0x049D7CB2 (pub) and
0x049D7878 (priv) and testnet are
0x044a5262 (pub) and
Finally, any indicator for testing the BIP49 and BIP84 vectors is appreciated. Currently, I came across the BIP themselves, as well as on SLIP132.