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 Group Key Code #1396

Merged
merged 3 commits into from
Feb 18, 2025
Merged

Refactor Group Key Code #1396

merged 3 commits into from
Feb 18, 2025

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented Feb 17, 2025

This refactor improves the organization of group key-related code by:

  • Extracting group key-specific logic into a dedicated file, group_key.go, for better modularity within asset package.
  • Generalizing the documentation for the GroupKey.GroupPubKey field to improve clarity.
  • Moving PendingGroupWitness from asset to tapgarden to align it with SealParams, its primary usage location.

Relocates PendingGroupWitness to be closer to SealParams, where it is
actually used. Also moves UnmarshalGroupWitness to prevent an import
cycle.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 13377827279

Details

  • 498 of 713 (69.85%) changed or added relevant lines in 3 files are covered.
  • 25 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.009%) to 41.023%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tapgarden/planter.go 1 2 50.0%
rpcserver.go 0 20 0.0%
asset/group_key.go 497 691 71.92%
Files with Coverage Reduction New Missed Lines %
tapdb/addrs.go 2 74.77%
tapgarden/planter.go 2 64.98%
asset/mock.go 3 92.27%
commitment/tap.go 4 83.86%
tapgarden/caretaker.go 4 68.49%
universe/interface.go 10 52.81%
Totals Coverage Status
Change from base Build 13373496688: 0.009%
Covered Lines: 27340
Relevant Lines: 66646

💛 - Coveralls

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, LGTM 🎉

@ffranr ffranr requested review from GeorgeTsagk and removed request for bhandras February 18, 2025 10:12
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM 💯

@guggero guggero merged commit f70e4a0 into main Feb 18, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants