sepinf-inc / IPED

IPED Digital Forensic Tool. It is an open source software that can be used to process and analyze digital evidence, often seized at crime scenes by law enforcement or in a corporate investigation by private examiners.
Other
893 stars 214 forks source link

Regex for TRON addresses #1974

Open filipesimoes opened 8 months ago

filipesimoes commented 8 months ago

TRON addresses are very common nowadays because of USDT token transactions. A regex for TRON addresses would be very useful.

References: TRON Account, TRON Validator

lfcnassif commented 8 months ago

Thanks for pointing @filipesimoes. Do you have a regex suggestion?

filipesimoes commented 8 months ago

@lfcnassif I think it's simple as T[A-Za-z1-9]{33} (base58 string with length 34 and starting with a uppercase T). Probably it will result in a lot of false positives. The validation will be required also.

lfcnassif commented 8 months ago

Sorry I was in a hurry and didn't read the reference. Seems a validator would be needed indeed.