Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable generation of testnet xPub #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lauhon
Copy link

@lauhon lauhon commented Jul 28, 2022

Hi,

i know this project is not being maintained anymore, but I decided to open this anyway, maybe it will be usefull for someone in the future.

I noticed that MPCCrypto_serializePubBIP32 has all the necessary logic to create test net xPub keys. The regarding functions even have a parameter to control that. But the parameter has a default value and is never changed by calling methods. The exposed functions by the library (inside mpc_crypto.h) do not offer a way to pass that information. I just added the parameter bool main and passed it down to serialize_pub which accepted this parameter anyway.

(bool main representing wether the xPub is generated for mainnet or not)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant