Skip to content

Instantly share code, notes, and snippets.

@assafmo
Created June 30, 2024 16:59
Show Gist options
  • Save assafmo/ebade2f909d267557c6a0f8cd764b80d to your computer and use it in GitHub Desktop.
Save assafmo/ebade2f909d267557c6a0f8cd764b80d to your computer and use it in GitHub Desktop.
eth_address = "0x" + hex(keccak256(pubkey_raw)[-20:])
cosmos_address = bech32(prefix, ripemd160(sha256(pubkey_compressed)))
cosmos_evmos_address = bech32(prefix, keccak256(pubkey_raw)[-20:])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment