Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw CBOR datum in transaction outputs #1543

Open
ch1bo opened this issue Jul 31, 2024 · 4 comments
Open

Raw CBOR datum in transaction outputs #1543

ch1bo opened this issue Jul 31, 2024 · 4 comments
Assignees
Labels
api Items related to the Hydra client API green 💚 Low complexity or well understood feature 💬 feature A feature on our roadmap ux Related to user experience

Comments

@ch1bo
Copy link
Collaborator

ch1bo commented Jul 31, 2024

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

  • Add a inlineDatumRaw to any TxOut sent out by the API, that contains the raw CBOR for any inline datums

How

  • Update the API specification and implementation
@ch1bo ch1bo added the 💭 idea An idea or feature request label Jul 31, 2024
@ch1bo
Copy link
Collaborator Author

ch1bo commented Jul 31, 2024

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 ch1bo changed the title Raw CBOR datum in UTxO outputs Raw CBOR datum in transaction outputs Jul 31, 2024
@ch1bo
Copy link
Collaborator Author

ch1bo commented Aug 1, 2024

Related to #1509

@ch1bo ch1bo added the api Items related to the Hydra client API label Aug 20, 2024
@ffakenz ffakenz self-assigned this Sep 10, 2024
@ffakenz ffakenz added the ux Related to user experience label Sep 10, 2024
@ffakenz
Copy link
Contributor

ffakenz commented Sep 11, 2024

PR upstream: IntersectMBO/cardano-api#632

@ch1bo ch1bo added 💬 feature A feature on our roadmap green 💚 Low complexity or well understood feature and removed 💭 idea An idea or feature request labels Sep 17, 2024
@noonio
Copy link
Contributor

noonio commented Sep 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Items related to the Hydra client API green 💚 Low complexity or well understood feature 💬 feature A feature on our roadmap ux Related to user experience
Projects
Status: Now
Development

No branches or pull requests

3 participants