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

CDDL for plutus scripts #2601

Closed
JaredCorduan opened this issue Jan 4, 2022 · 1 comment
Closed

CDDL for plutus scripts #2601

JaredCorduan opened this issue Jan 4, 2022 · 1 comment
Labels

Comments

@JaredCorduan
Copy link
Contributor

We may want to consider separating plutus scripts in the CDDL specification using a tagged alternative instead of just adding to the map. In other words, instead of adding , ? 6: [* plutus_script_v2 ] to

https://github.com/input-output-hk/cardano-ledger/blob/d34978e4ca0ced84aa3e5586feb7b3382a76f367/eras/alonzo/test-suite/cddl-files/alonzo.cddl#L260-L267

we use:

tagged_script = #6.whatever plutus_v1_script / #6.whatever plutus_v2_script

transaction_witness_set =
  { ...
  ,  3: [* tagged_script ]
  }

We could also lump native scripts in with the alternative as well, but we need to think about backwards compatibility.

@JaredCorduan
Copy link
Contributor Author

I had forgotten the history of this topic when I made this issue. The original design was deliberate, it reduces redundancy on the wire (no repeated tags).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant