-
Notifications
You must be signed in to change notification settings - Fork 157
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
Babbage: Reference scripts #2645
Conversation
| TxOutCompactRefScript' | ||
{-# UNPACK #-} !(CompactAddr (Crypto era)) | ||
!(CompactForm (Core.Value era)) | ||
!(Datum era) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is kind of a compromise between performance and having a nice API + not polluting the CBOR with a bunch of extra constructors to represent every possible new permutation of Addr × Value × (Datum | DataHash)? × Script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I like this. we are indeed on a combinatorially explosive path that has to be dampened somehow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My previous comment was wrong. This looks good, I like it too! 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean that inline data and ref script can't be used in the same output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the contrary, it means that inline datum is optional with a ref script
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TxOutCompactRefScript' caddr value (Datum inlineDatum) refScript
is valid
32f4d72
to
6792c7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! We are still trying to decide on the final serialization schema for the Babbage era transaction outputs, but I think this PR does not need to be blocked by that decision.
I'm not sure what is going on with ormolu, I'll try to restart the github action |
6eefa8d
to
ce0ecdd
Compare
resolves #2465