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:babbage: Switch to using Huddle/Cuddle #4785

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aniketd
Copy link
Contributor

@aniketd aniketd commented Dec 6, 2024

Description

  • Remove
    • crypto.cddl
    • extras.cddl
  • Add
    • Test.Cardano.Ledger.Babbage.CDDL
    • cardano-ledger-babbage:exe:huddle-cddle
    • huddleRoundTrip(Ann)CborSpec for all definitions already being tested
  • Autogenerate babbage.cddl using Huddle/Cuddle
  • Update
    • hie.yaml with babbage paths module and huddle-cddl
    • gen-cddl.sh to include babbage

Resolves #4781

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages.
    New section is never added with the code changes. (See RELEASING.md)
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated.
    If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • Code is formatted with fourmolu (use scripts/fourmolize.sh)
  • Cabal files are formatted (use scripts/cabal-format.sh)
  • hie.yaml has been updated (use scripts/gen-hie.sh)
  • Self-reviewed the diff

@aniketd aniketd force-pushed the aniketd/huddle-babbage branch 3 times, most recently from a1c9d54 to b5087e1 Compare December 9, 2024 14:38
@aniketd aniketd marked this pull request as ready for review December 9, 2024 14:39
@aniketd aniketd requested a review from a team as a code owner December 9, 2024 14:39
@aniketd aniketd force-pushed the aniketd/huddle-babbage branch from b5087e1 to 59c79a6 Compare December 10, 2024 11:13
Copy link
Contributor

@teodanciu teodanciu left a 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, went through the cddl differences and found a few fields which were incorrectly indicated as NEW in the comment, and a difference which is more significant in the way the protocol_version is defined, and the latter I believe we need to fix before merging.
Nice work!

- Remove
  - crypto.cddl
  - extras.cddl
- Add
  - Test.Cardano.Ledger.Babbage.CDDL
  - cardano-ledger-babbage:exe:huddle-cddle
  - huddleRoundTrip(Ann)CborSpec for all definitions already being tested
- Autogenerate babbage.cddl using Huddle/Cuddle
- Update
  - hie.yaml with babbage paths module and huddle-cddl
  - gen-cddl.sh to include babbage
- Update `operational_cert` definition to preserve the keys
@aniketd aniketd force-pushed the aniketd/huddle-babbage branch from 59c79a6 to 4199281 Compare December 11, 2024 11:12
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: Generate CDDL using Huddle/Cuddle
2 participants