talonlab / python-hdwallet

Python-based library for the implementation of a Hierarchical Deterministic (HD) Wallet generator supporting more than 200 cryptocurrencies.
https://hdwallet.readthedocs.io
MIT License
482 stars 151 forks source link

Add support for Flux cryptocurrency. Coin Type: 19167 #72

Closed MorningLightMountain713 closed 1 year ago

MorningLightMountain713 commented 2 years ago

Hi there, I would be happy to implement this myself and submit a PR.

Is there anywhere I can find a detailed explanation for the Cryptocurrency class and the parameters?

Thanks

MorningLightMountain713 commented 2 years ago

Actually, I might have found them

        // guarantees the first 2 characters, when base58 encoded, are "t1"
        base58Prefixes[PUBKEY_ADDRESS]     = {0x1C,0xB8};
        // guarantees the first 2 characters, when base58 encoded, are "t3"
        base58Prefixes[SCRIPT_ADDRESS]     = {0x1C,0xBD};
        // the first character, when base58 encoded, is "5" or "K" or "L" (as in Bitcoin)
        base58Prefixes[SECRET_KEY]         = {0x80};
        // do not rely on these BIP32 prefixes; they are not specified and may change
        base58Prefixes[EXT_PUBLIC_KEY]     = {0x04,0x88,0xB2,0x1E};
        base58Prefixes[EXT_SECRET_KEY]     = {0x04,0x88,0xAD,0xE4};
meherett commented 2 years ago

73