logo
pub fn hash_public_key(jwk: &JWK) -> Result<String, Error>
Expand description

Hash a public key to produce a Tezos address.

The address format is a Base58Check-encoded hash of the public key bytes, with a prefix for the type of key. This is as described in Tezos’s Base58 prefix documentation. The prefixes in the resulting ASCII string are tz1 for Ed25519, tz2 for Secp256k1 (k256), and tz3 for Secp256r1 (p256).