Skip to content

Include CBOR-serialized representation of native scripts  #239

@KtorZ

Description

@KtorZ

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help welcomedGood for newcomersserverIssues which regard the server

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions