-
Notifications
You must be signed in to change notification settings - Fork 14
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
Behavior of Plutus V3 scripts without datum #637
Comments
I wasn't aware of this feature being implemented as part of Conway. You're completely right, if this is supported now this needs to be part of the spec. This should be fairly easy to do, just have to adjust a couple of types and functions. I don't think this will touch any proofs. @lehins can you confirm that this is an intended feature? If so, this should have been communicated to us properly. |
I only remember it coming up occasionally, but I wasn't in any meeting where a decision was made and it was never raised as something that we (formal methods) need to implement. I'll give this a high priority for the spec release, should be fixed in a few weeks at the latest. |
I was going to write an implementation plan for this, but then I realized that there is actually nothing to do for the actual semantics, because we have a bug in our current Alonzo implementation. The spec actually allows the case for the datum being empty already (the Alonzo spec does forbid this explicitly though). So all that needs to be done here is to document and expose this. Specifically, this line ∙ inputHashes ⊆ txdatsHashes compares two @williamdemeo can you add a small section to |
PlutusV3 ledger api have introduced optional datum field to
Spending
constructor ofScriptInfo
type. With changes inScriptContext
, intuitively, this change appears to be added in order to allow validation of PlutusV3 script UTXO that hold no datum. On contrast, such UTXOs locked on PlutusV1 and V2 script UTXO(with no datum) are considered burnt as the validation will always fail as per previous ledger specs.So, I'm wondering if my assumption of PlutusV3 scripts now supporting "no datum" utxo is correct. And if so, having that spec'd out would be helpful since this behavior previously had detrimental effect.
The text was updated successfully, but these errors were encountered: