You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Ogmios returns native scripts as JSON objects using some special keywords to represent the little DSL formed by the native scripts (all, any, after, before ...). On-chain, these scripts are represented as CBOR in a compact structure. Having readily access to that structure instead of needed to parse and re-serialize the JSON could be handy.
Why is it a good idea?
Because the serialization from the higher-level DSL down to CBOR isn't handy. While it is detailed in CIP-0029, it can be an unnecessary complexity to clients who need to also store it in a compact form or, who need to calculate a hash digest of the data.
This discussion was converted from issue #239 on September 30, 2022 08:36.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Describe your idea, in simple words.
Currently, Ogmios returns native scripts as JSON objects using some special keywords to represent the little DSL formed by the native scripts (
all
,any
,after
,before
...). On-chain, these scripts are represented as CBOR in a compact structure. Having readily access to that structure instead of needed to parse and re-serialize the JSON could be handy.Why is it a good idea?
Because the serialization from the higher-level DSL down to CBOR isn't handy. While it is detailed in CIP-0029, it can be an unnecessary complexity to clients who need to also store it in a compact form or, who need to calculate a hash digest of the data.
Are you willing to work on it yourself?
Yes.
Beta Was this translation helpful? Give feedback.
All reactions