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

Refactor GroupKeyReveal for multi-version support #1235

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented Dec 4, 2024

Rename the existing GroupKeyReveal struct to GroupKeyRevealV0 and introduce a new GroupKeyReveal interface. This change enables adding new versions of GroupKeyReveal while retaining the V0 type for proper documentation of its behavior.

Support for GroupKeyReveal V0 will be preserved.

@ffranr ffranr requested review from guggero and jharveyb December 4, 2024 14:52
@ffranr ffranr self-assigned this Dec 4, 2024
@coveralls
Copy link

coveralls commented Dec 4, 2024

Pull Request Test Coverage Report for Build 12179911863

Details

  • 54 of 58 (93.1%) changed or added relevant lines in 10 files are covered.
  • 31 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.02%) to 40.834%

Changes Missing Coverage Covered Lines Changed/Added Lines %
itest/assertions.go 0 1 0.0%
rpcserver.go 0 3 0.0%
Files with Coverage Reduction New Missed Lines %
internal/test/helpers.go 2 86.95%
tapdb/addrs.go 2 79.14%
asset/asset.go 4 81.26%
tapchannel/aux_leaf_signer.go 5 43.08%
commitment/tap.go 6 83.64%
universe/interface.go 12 51.95%
Totals Coverage Status
Change from base Build 12161911837: 0.02%
Covered Lines: 25796
Relevant Lines: 63173

💛 - Coveralls

@ffranr ffranr force-pushed the groupkeyreveal-version-refactor branch from 1ecd653 to eab05c0 Compare December 4, 2024 18:49
@ffranr ffranr requested review from GeorgeTsagk and removed request for jharveyb December 4, 2024 18:49
Copy link
Member

@GeorgeTsagk GeorgeTsagk left a comment

Choose a reason for hiding this comment

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

Clean ✨
LGTM ✔️

Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Nice and spotless rename/refactor 💯

proof/proof.go Outdated Show resolved Hide resolved
Rename the existing `GroupKeyReveal` struct to `GroupKeyRevealV0` and
introduce a new `GroupKeyReveal` interface. This change enables adding
new versions of GroupKeyReveal while retaining the V0 type for proper
documentation of its behavior.

Support for GroupKeyReveal V0 will be preserved.
Relocate the PendingGroupWitness struct to improve code
organization and readability.
Renamed the function to `GroupPubKeyV0` to allow for the introduction
of future versions while maintaining clarity and compatibility.
@ffranr ffranr force-pushed the groupkeyreveal-version-refactor branch from eab05c0 to 2fa1fb5 Compare December 5, 2024 12:38
@ffranr ffranr enabled auto-merge December 5, 2024 12:39
@ffranr ffranr added this pull request to the merge queue Dec 5, 2024
Merged via the queue into main with commit 3d3b254 Dec 5, 2024
18 checks passed
@dstadulis dstadulis added this to the v0.6 milestone Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants