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

babbage script well-formedness check #2717

Merged
merged 1 commit into from Apr 3, 2022
Merged

Conversation

goolord
Copy link
Contributor

@goolord goolord commented Apr 1, 2022

i think this small check is all that's necessary

  • datums well-formedness is an invariant maintained by the wire format
  • reference scripts are part of the txscripts set for babbage
  • failedScripts are part of the txscripts set
  • auxilliary data is checked by validateMetadata

resolves #2713

(txscripts utxo tx) -- txscripts = babbageTxScripts which includes reference scripts.
in failureUnless
(Map.null failedScripts)
(Shelley.ScriptWitnessNotValidatingUTXOW $ Map.keysSet failedScripts)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this still an accurate name? this test also validates reference scripts

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point. I also think that the Not is weird in that name.

@goolord goolord force-pushed the zc/isWellFormed-check branch 3 times, most recently from c510243 to ec59ec5 Compare April 1, 2022 08:12
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks @goolord ! Thanks for adding that test! So this PR closes both #2713 and #2471

I'm not sure why the old Alonzo examples are now getting MalformedScripts predicate failures. Once we figure that out, this PR is good to merge.

@goolord
Copy link
Contributor Author

goolord commented Apr 2, 2022

should be all premo now 🙆

@JaredCorduan JaredCorduan merged commit d484397 into master Apr 3, 2022
@iohk-bors iohk-bors bot deleted the zc/isWellFormed-check branch April 3, 2022 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Babbage isWellFormed check
2 participants