blockchain_utils icon indicating copy to clipboard operation
blockchain_utils copied to clipboard

Allow custom coin configuration for BIP49 or others

Open sandrosimas opened this issue 1 year ago • 12 comments

Thanks for the awesome library! I was wondering if there's a way to use BIP49 with a configuration not listed here. If not, would it be possible to add support for new cryptocurrencies in this library? It seems like the fromSeed method could potentially accept a custom configuration.

sandrosimas avatar Oct 04 '24 21:10 sandrosimas

Thanks for the awesome library! I was wondering if there's a way to use BIP49 with a configuration not listed here. If not, would it be possible to add support for new cryptocurrencies in this library? It seems like the fromSeed method could potentially accept a custom configuration.

Hi, thanks

Different coins use different cryptographic standards, and depending on that, you can use specific tools for key generation. Here are some options for generating keys with different cryptography standards:

Bip32Slip10Secp256k1 Bip32Slip10Ed25519 CardanoIcarusBip32 Bip32KholawEd25519 Bip32Slip10Ed25519Blake2b Bip32Slip10Nist256p1

There are also specific tools for certain coin standards, like: Bip44Coins Bip49Coins Bip84Coins Bip86Coins Cip1852Coins

which coin do you need?

mrtnetwork avatar Oct 07 '24 03:10 mrtnetwork

I'd like to generate keys for the Electra Protocol layer 2 (Omni XEP). I was able to fork and create the config for this network. Let me know if you want me to submit a PR.

sandrosimas avatar Oct 07 '24 12:10 sandrosimas

Bip49 / Slip44 / secp256k1

sandrosimas avatar Oct 07 '24 12:10 sandrosimas

Bip49 / Slip44 / secp256k1

Apologies for the delay. Could you please clarify exactly what you need? I’ll review it and either add it to the package or submit a pull request.

mrtnetwork avatar Oct 09 '24 18:10 mrtnetwork

@mrtnetwork, I need to generate wallets for crypto not listed in your project. Basically, this: https://github.com/sandrocsimas/blockchain_utils/commit/15b2d3bc076eb22e681767215b13ada7df7b7d55

sandrosimas avatar Oct 09 '24 19:10 sandrosimas

@mrtnetwork, I need to generate wallets for crypto not listed in your project. Basically, this: sandrocsimas@15b2d3b

I will consider for the next update

mrtnetwork avatar Oct 16 '24 03:10 mrtnetwork

Thank you, @mrtnetwork. If you're planning to add support for the Electra protocol, I’d recommend holding off for now as I'm still creating and testing the wallet. But if you're just considering making fromSeed and other functions more flexible to support custom cryptocurrencies, that would be fantastic!

sandrosimas avatar Oct 16 '24 13:10 sandrosimas

Hi @mrtnetwork, I created a PR for this repository and another for bitcoin_base. Both to complete the integration with OmniXEP. Many thanks!

sandrosimas avatar Nov 29 '24 21:11 sandrosimas

It would still be nice to have a generic interface, so people can add their own coin config, without needing to submit a PR.

sandrosimas avatar Nov 29 '24 21:11 sandrosimas

@mrtnetwork, are you planning to release a new version of blockchain_utils and bitcoin_base soon? I'd love to get rid of my forks and launch OmniXEP mobile wallet without them, hehe.

sandrosimas avatar Dec 09 '24 16:12 sandrosimas

@mrtnetwork, are you planning to release a new version of blockchain_utils and bitcoin_base soon? I'd love to get rid of my forks and launch OmniXEP mobile wallet without them, hehe.

hi, a week ago I published them in pub dev with OmniXEP features.

mrtnetwork avatar Dec 09 '24 18:12 mrtnetwork

Oh, nice, I'll take a look. Thanks!

sandrosimas avatar Dec 09 '24 19:12 sandrosimas