Public Key Hash from Address

Hello,

thats my first post here and i already searched the forum about this task, but i can not find anything suitable.

Is it possible (or better: how is it possible) to get the public key hash (PKH) just from the address? When i enter an address in cardanoscan, it displays the pkh below the address. Iā€™m working on Smart Contracts which needs the PKH - but i dont have the PKH, i only have the address.

Does anyone has an idea about this? :slight_smile:
Best
Sascha

Addresses contain the hash in encoded form.

The encoding is described in:
https://github.com/cardano-foundation/CIPs/blob/master/CIP-0019/README.md

The used encoding (BECH32) is specified in:
https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki

2 Likes

Thanks, that was really helpful. I got it working

1 Like