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

Added reg cert, fixed hashing of VKeys #616

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Conversation

Soupstraw
Copy link
Contributor

@Soupstraw Soupstraw commented Nov 21, 2024

Description

Adds reg cert, which behaves similarly to delegate c nothing nothing d, except that it doesn't require witnessing. This is the legacy staking address registration certificate that we still want to support in Conway and hopefully we can get rid of in the future.

Adds HSVKey, which stores the verification key together with the hash that's provided during translation in conformance testing. This fixes the issue where the value of the VKey itself is used as the hash, which caused conformance tests to fail.

related: IntersectMBO/cardano-ledger#4780
closes #615

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Any semantic changes to the specifications are documented in CHANGELOG.md
  • Code is formatted according to CONTRIBUTING.md
  • Self-reviewed the diff

@Soupstraw Soupstraw force-pushed the jj/legacy-regcert branch 2 times, most recently from d61a6c9 to 28742bb Compare November 21, 2024 15:23
@Soupstraw Soupstraw marked this pull request as ready for review November 21, 2024 15:23
@Soupstraw Soupstraw force-pushed the jj/legacy-regcert branch 5 times, most recently from e26e564 to 6cfba2b Compare November 22, 2024 12:45
@Soupstraw Soupstraw force-pushed the jj/legacy-regcert branch 7 times, most recently from ae3aaed to 6cc0b86 Compare November 22, 2024 15:16
@Soupstraw Soupstraw marked this pull request as draft November 22, 2024 15:44
@Soupstraw Soupstraw mentioned this pull request Nov 22, 2024
4 tasks
@Soupstraw Soupstraw force-pushed the jj/legacy-regcert branch 6 times, most recently from a23e50d to 13c6922 Compare December 2, 2024 14:04
@Soupstraw Soupstraw force-pushed the jj/legacy-regcert branch 4 times, most recently from d1d27a1 to 16ba02d Compare December 3, 2024 13:55
@Soupstraw Soupstraw force-pushed the jj/legacy-regcert branch 3 times, most recently from 610d033 to 23218dd Compare December 3, 2024 14:53
@Soupstraw Soupstraw marked this pull request as ready for review December 4, 2024 13:28
@Soupstraw Soupstraw changed the title Added reg cert Added reg cert, fixed hashing of VKeys Dec 4, 2024
Copy link
Contributor

@williamdemeo williamdemeo left a comment

Choose a reason for hiding this comment

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

Looks great. Nice work, Joosep! LGTM! 🚀

shell.nix Show resolved Hide resolved
@williamdemeo
Copy link
Contributor

@Soupstraw before merging, could you please add descriptions for each substantial change to the CHANGELOG.md? (especially anything that changes the ledger semantics)

@Soupstraw Soupstraw merged commit f6632a8 into master Dec 5, 2024
7 checks passed
@Soupstraw Soupstraw deleted the jj/legacy-regcert branch December 5, 2024 11:11
github-actions bot added a commit that referenced this pull request Dec 5, 2024
williamdemeo added a commit that referenced this pull request Dec 6, 2024
Partial attempt to reconcile this branch with the new DELEG-reg rule
introduced by
[PR 616](#616).
(The new rule is introduced [here](https://github.com/IntersectMBO/formal-ledger-specifications/blob/68fedc572770a4cbdca3cb303bead472063688c4/src/Ledger/Certs.lagda#L337-L343).)
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.

Add legacy registration certificates
2 participants