Skip to content

Conversation

@imranalperen
Copy link

Closes #1519

This PR adds a new trx_addr validation tag for validating TRON mainnet addresses.

TRON addresses use Base58Check encoding, identical to Bitcoin addresses,
with a version byte of 0x41 and a double SHA256 checksum.
The implementation follows the same decoding and checksum verification
approach used by the existing btc_addr validator to ensure consistency.

Included in this PR:

  • Base58Check decoding and checksum validation for TRON addresses
  • Mainnet version byte validation (0x41)
  • Test cases for valid and invalid addresses
  • Documentation for the new trx_addr validation tag

@imranalperen imranalperen requested a review from a team as a code owner December 31, 2025 20:24
@coveralls
Copy link

Coverage Status

coverage: 73.85% (+0.04%) from 73.814%
when pulling e4d26dd on imranalperen:#1519/feature/trx_addr-tag
into 5010f83 on go-playground:master.

Copy link
Member

@zemzale zemzale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Feature request: TRC20 address validation tags

3 participants