Skip to content

Add BitcoinCashAddressType enum and token support#127

Open
hantyrram wants to merge 4 commits intohdwallet-io:masterfrom
hantyrram:feat/bitcoincash-address-token-support
Open

Add BitcoinCashAddressType enum and token support#127
hantyrram wants to merge 4 commits intohdwallet-io:masterfrom
hantyrram:feat/bitcoincash-address-token-support

Conversation

@hantyrram
Copy link
Copy Markdown

Fixes #126

  • Add BitcoinCashAddressType IntEnum with P2PKH, P2SH, and token variants
  • Support prefix kwarg in encode method for address prefix override
  • Add token_support kwarg to enable token address encoding (version byte 0x10)
  • Enhance decode method to return address type info when decode_type=True
  • Support multiple HRPs (mainnet/testnet) in decode validation

- Add BitcoinCashAddressType IntEnum with P2PKH, P2SH, and token variants
- Support prefix kwarg in encode method for address prefix override
- Add token_support kwarg to enable token address encoding (version byte 0x10)
- Enhance decode method to return address type info when decode_type=True
- Support multiple HRPs (mainnet/testnet) in decode validation
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.

Error decoding bchtest or bchreg addresses, no token support

1 participant