to Public Key To Tron Address
Converts a ByteArray representing an uncompressed public key into a TRON blockchain address.
The method performs the following steps:
Ensures the input is in uncompressed public key format (64 or 65 bytes).
Strips the 0x04 prefix if the key is 65 bytes (optional prefix for uncompressed keys).
Applies a Keccak-256 hash to the last 64 bytes (x and y coordinates).
Uses the last 20 bytes of the hash and prepends the TRON address prefix (0x41).
Encodes the resulting payload using Base58Check encoding.
Return
A String representing the Base58Check-encoded TRON address derived from the input public key.
Throws
if the input ByteArray size is not 64 or 65 bytes.