Support Regtest (correct way). #128
-
HI @dr-orlovsky, I will start contributing to a project for testing and building LN apps. This project works with bitcoin core and the majority of LN clients. I want to extend this project to support RGB, Bifrost, and Storm protocols. But this project works only with regtest mode. I found one impediment for this:
The impediment occurs because the bip32 xpub prefix is the same on testnet/regtest, but the address prefix is not. To recover the correct network, I added magic bytes of the network in strict_encode/strict_decode methods. Do you have any consideration for the solution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hm, I am not sure I understand what specificly prevents from using the xpub in the regtest network. Can you please provide more details? Basically, xpub BIP32 strict encoding is exactly the same as the bitcoin BIP32 encoding, so if regtest is supported there it should be supported in RGB. |
Beta Was this translation helpful? Give feedback.
Hm, I am not sure I understand what specificly prevents from using the xpub in the regtest network. Can you please provide more details?
Basically, xpub BIP32 strict encoding is exactly the same as the bitcoin BIP32 encoding, so if regtest is supported there it should be supported in RGB.