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

enforce unique elements in CBOR sets, ver. 9 #3331

Merged
merged 1 commit into from
Mar 16, 2023
Merged

Conversation

JaredCorduan
Copy link
Contributor

@JaredCorduan JaredCorduan commented Mar 14, 2023

Description

Starting in major version 9, we now raise a decoding error if a CBOR set contains duplicate keys. Additionally, we allow (but do not require) the set tag.

resolves #3340

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the CHANGELOG.md for affected package
  • 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

@JaredCorduan JaredCorduan requested a review from lehins March 14, 2023 22:45
@JaredCorduan JaredCorduan force-pushed the jc/no-dups-in-sets branch 2 times, most recently from 5697eb4 to 2283560 Compare March 14, 2023 23:40
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Looking great

@JaredCorduan JaredCorduan force-pushed the jc/no-dups-in-sets branch 2 times, most recently from a90c17a to 20e6602 Compare March 16, 2023 16:46
Copy link
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Beautiful! 👍

Starting in major version 9, we now raise a decoding error if a CBOR
set contains duplicate keys. Additionally, we allow (but do not require)
the set tag.
@JaredCorduan JaredCorduan enabled auto-merge (rebase) March 16, 2023 20:13
@JaredCorduan JaredCorduan merged commit a342b74 into master Mar 16, 2023
@iohk-bors iohk-bors bot deleted the jc/no-dups-in-sets branch March 16, 2023 22:01
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.

duplicate keys in CBOR set decoding #2965
2 participants