cardano-scaling / hydra

Implementation of the Hydra Head protocol
https://hydra.family/head-protocol/
Apache License 2.0
274 stars 84 forks source link

Raw CBOR datum in transaction outputs #1543

Open ch1bo opened 1 month ago

ch1bo commented 1 month ago

Why

When building applications that need to spend from a script UTxO in a Hydra head, which has a datum attached, that off-chain code needs access to the raw Datum for evaluating the transaction and calculate fees.

The schema used by the hydra-node right now matches whatever cardano-api provides, while other applications follow other schemas. For example: kupo, ogmios (also see cardanonical) or blockfrost

This item is a backward-compatible change and in further steps we might want to move to one of those.

What

How

ch1bo commented 1 month ago

We encountered this when building https://github.com/cardano-scaling/hydra-doom with @Quantumplation and @yHSJ where we use https://github.com/spacebudz/lucid

ch1bo commented 1 month ago

Related to #1509

ffakenz commented 2 days ago

PR upstream: https://github.com/IntersectMBO/cardano-api/pull/632