chore: force usage of constructor for PermanentKeyshareData#2437
chore: force usage of constructor for PermanentKeyshareData#2437
Conversation
Code ReviewClean encapsulation PR that makes No critical issues found. Minor note (non-blocking): ✅ Approved |
There was a problem hiding this comment.
Unfortunately, this PR isn't helping in decoupling the node and the contract behavior.
Ideally, we want to get rid of the assumption that keyshares stored on the node follow the same order with which they are stored in the contract, and that the resharing of keys happen in the exact same order in which the keys are stored in the KeyshareStorage.
9df87ff to
8b0a45a
Compare
8b0a45a to
e971248
Compare
|
PR title type suggestion: This PR restructures how Suggested title: |
Code ReviewClean PR that removes the implicit ordering assumption between permanent keyshares and contract keysets, replacing prefix-based matching with order-independent domain_id-based matching. All keyshares are now sorted by No critical issues found. ✅ Approved |
kevindeforth
left a comment
There was a problem hiding this comment.
Thank you, only nits!
…onstructor-for-permanentkeysharedata
|
PR title type suggestion: This PR refactors code to enforce constructor usage for Suggested title: |
|
PR title type suggestion: This PR restructures code to enforce constructor usage, which is a refactoring effort. The type prefix should probably be Suggested title: |
|
PR title type suggestion: This PR restructures code to enforce constructor usage for Suggested title: |
netrome
left a comment
There was a problem hiding this comment.
No blockers spotted, but it feels like a lot of the logic would end up much cleaner if we used e.g. a BTreeSet for the keyshares (along with an appropriate Ord implementation)
Closes #1217
The issue was expanded to cope with ( see the comments below):