Skip to content

Plutus data encoding differs to other Cardano tools #115

Closed Answered by KtorZ
catch-21 asked this question in Q & A
Discussion options

You must be logged in to vote

Yes indeed, Ogmios has made some opinionated choices for various encoding. The rule of thumb is that:

  • If specified in CIP-0005, it'll use bech32 (e.g. Addresses, pool ids...)
  • if unspecified and a short bytestring, it'll use base16 (transaction ids, metadata hashes..)
  • for other arbitrarily long bytestrings, it'll use base64 as it is faster and more space-efficient.

Overall it doesn't matter that much since converting from one to another is trivial. Possibly, we could foresee an option to make it configurable so that it's possible to tweak some of those encodings at will yet, it feels "overkill" for this issue IMO.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by catch-21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q & A
Labels
None yet
2 participants