CSL and Ogmios
Cardano Serialization Lib and Cardano Ogmios in Deno
Get Cardano Bech32 Address from key returned by Ogmios
Ogmios 6.7.0 and CSL 12.1.0 with Deno 1.45.2
The `key` is fetched from an ogmios block within a transaction.
The goal is to try to find out who signed the Tx. So using CSL it can be easily achieved.
First step is using the PublicKey to get a KeyHash Instance and from that Hash we can create a Credential Instance.
Then to recreate the Address, we simply need to use the EnterpriseAddress (or the BaseAddress if you have a StakeKey) to print the original address in bech32 format (I have the code for the BaseAddress in the cardano repository).
Want to learn more?
I have the code in the cardano-indexer repository (for the ogmios part) and in the cardano repository for the address manipulation.
Last updated
Was this helpful?