CardanoSolutions / ogmios

❇️ A WebSocket JSON/RPC bridge for Cardano
https://ogmios.dev
Mozilla Public License 2.0
304 stars 90 forks source link

Do not omit script, datum and redeemers in compact mode #271

Closed KtorZ closed 1 year ago

KtorZ commented 2 years ago

Discussed in https://github.com/CardanoSolutions/ogmios/discussions/269

Originally posted by **KtorZ** July 14, 2022 #### Describe your idea, in simple words. Ogmios has a compact mode where large data like signatures and headers are omitted from the response. This is useful for clients in a trusted configuration who do not actively verify information they get from Ogmios (i.e. most clients really). However, in compact mode, Ogmios currently omits the **entire** witness set, whereas some witness are pretty useful information such as scripts, datums and redeemers. The compact mode should really just omit signatures from the witness set. #### Why is it a good idea? Allows to build clients that consume compact data but still have access to missing useful pieces. #### Are you willing to work on it yourself? Yes.
KtorZ commented 1 year ago

Will be made obsolete by the v6.0.0 wishlist (removing compact mode altogether).