i want to validate a cosmos address in solidity which should return true or false for valid or invalid respectively. I believe this would involve doing bech32 validation with the following checks:
- check if hrp is valid (“cosmos”)
- check if the subsequent character is “1”
- check the checksum validity
would these steps suffice or should there be more validations? also any source of contract logic for these checks (especially the third).