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

Support for Bitcoin only? #45

Open
echan00 opened this issue Aug 10, 2021 · 2 comments
Open

Support for Bitcoin only? #45

echan00 opened this issue Aug 10, 2021 · 2 comments
Labels

Comments

@echan00
Copy link

echan00 commented Aug 10, 2021

My apologies for the ignorant question as I can't find the answer elsewhere.

Do the wallets created by this gem only support BTC? I would like to use this for DOGE instead and am wondering if anything needs to be done differently or the addresses created will also work.

@q9f
Copy link
Collaborator

q9f commented Dec 2, 2021

The keypairs are all the same: secp256k1 elliptic curve.

To retrieve a DOGE address from such a keypair is the same algorithm that BTC uses, just pass a different version byte.

Here is how I do it in Crystal: https://github.com/q9f/secp256k1.cr/blob/main/try.cr#L19-L27

@q9f q9f added the question label Dec 3, 2021
@q9f
Copy link
Collaborator

q9f commented Dec 3, 2021

#34 could work for you.

there are various network configurations available. if you have the chance to add a doge network config, I'm happy to accept this.

See https://github.com/GemHQ/money-tree/blob/master/lib/money-tree/networks.rb

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

No branches or pull requests

2 participants