Function ssi_jwk::eip155::hash_public_key
source · pub fn hash_public_key(jwk: &JWK) -> Result<String, Error>
Available on crate feature
eip
only.Expand description
Compute a hash of a public key as an Ethereum address.
The hash is of the public key (64 bytes), using Keccak. The hash is truncated to the last 20 bytes, lowercase-hex-encoded, and prefixed with “0x” to form the resulting string.