This project converts a Bech32-formatted ethm address (used in the Cosmos ecosystem) into an EIP55-checksummed EVM address.
- Bech32 Decoding: The script decodes the Bech32 address to extract the raw bytes.
- Hex Conversion: The raw bytes are converted into a hexadecimal string.
- EIP55 Checksum: A Keccak256 hash is computed on the lowercase hexadecimal address. The result is used to determine which characters to uppercase, creating the EIP55 checksum.
- Output: The final EVM address is printed with the
0xprefix.
- Clone the repository:
git clone <your-repo-url> cd bech32-to-evm