-
Notifications
You must be signed in to change notification settings - Fork 75
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
DKG test loop #3034
DKG test loop #3034
Commits on Jun 24, 2022
-
Get rid of the current group selection code
The existing group selection code (ticket submission etc.) was relevant for beacon v1 but does no longer make sense for v2. The new group creation process does not use ticket submission and relies on the sortition pool group selection. This changeset is the first step towards the support of the new group creation flow.
Configuration menu - View commit details
-
Copy full SHA for af45efd - Browse repository at this point
Copy the full SHA af45efdView commit details
Commits on Jun 29, 2022
-
Merge branch 'main' into dkg-loop
# Conflicts: # pkg/chain/local/local.go
Configuration menu - View commit details
-
Copy full SHA for e895b9b - Browse repository at this point
Copy the full SHA e895b9bView commit details -
Contract bindings are not ready yet so, we mitigate that problem by triggering the DKG loop every 100th block.
Configuration menu - View commit details
-
Copy full SHA for c310f80 - Browse repository at this point
Copy the full SHA c310f80View commit details -
Cleanup the remaining parts related to ticket
submission logic
Configuration menu - View commit details
-
Copy full SHA for e620aed - Browse repository at this point
Copy the full SHA e620aedView commit details -
`GroupRegistrationInterface` So far, this function was defined in the `DistributedKeyGenerationInterface` but looks like `GroupRegistrationInterface` is a better place.
Configuration menu - View commit details
-
Copy full SHA for 762b0d8 - Browse repository at this point
Copy the full SHA 762b0d8View commit details
Commits on Jun 30, 2022
-
Remove current group selection deduplication logic
That logic is now obsolete because the v2 beacon group creation looks differently and uses the result challenge and approval mechanisms. Because of that, we remove it from the deduplicator and leave a TODO to implement the new logic when the full new group creation flow will be implemented.
Configuration menu - View commit details
-
Copy full SHA for 3d88e37 - Browse repository at this point
Copy the full SHA 3d88e37View commit details -
Configuration menu - View commit details
-
Copy full SHA for b0d2670 - Browse repository at this point
Copy the full SHA b0d2670View commit details -
Temporarily hardcode group size and honest
threshold This way we can use values from v2, and we can test how DKG behaves with them.
Configuration menu - View commit details
-
Copy full SHA for 66e9c3a - Browse repository at this point
Copy the full SHA 66e9c3aView commit details -
Storing DKG test loop result on disk
In v1, a result of a successful DKG was always a fully-operable on-chain group whose key material share was registered on-disk by each member. This is no longer a case in v2 where a DKG result is not approved immediately and is the subject of a challenge period. Because of that, we modify the group registry to allow storing non-operable candidate groups first and then register those groups as approved once on-chain approval takes place.
Configuration menu - View commit details
-
Copy full SHA for a46353d - Browse repository at this point
Copy the full SHA a46353dView commit details -
Detach DKG result submission from the v1 contract
Here we detach the DKG result submission logic from the v1 contract in favor of a temporary code that will allow to test the DKG loop. Once the interim ends, real v2 contract binding should be integrated here.
Configuration menu - View commit details
-
Copy full SHA for a5b67cb - Browse repository at this point
Copy the full SHA a5b67cbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d940da - Browse repository at this point
Copy the full SHA 0d940daView commit details
Commits on Jul 1, 2022
-
Integrate mock group selection
The real group selection is not available yet so we just return a group whose members correspond to the operator itself. In effect, the DKG test loop will be performed between members belonging to the same client instance.
Configuration menu - View commit details
-
Copy full SHA for 002b15a - Browse repository at this point
Copy the full SHA 002b15aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1900757 - Browse repository at this point
Copy the full SHA 1900757View commit details
Commits on Jul 4, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b04ec33 - Browse repository at this point
Copy the full SHA b04ec33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aea172 - Browse repository at this point
Copy the full SHA 0aea172View commit details -
Trigger DKG loop every 500th block
If we trigger DKG every 100th block, subsequent DKG instances overlap and cause very high CPU usage.
Configuration menu - View commit details
-
Copy full SHA for 05cc9ca - Browse repository at this point
Copy the full SHA 05cc9caView commit details -
Random beacon DKG will still use 64 members. We reflect that change in the temporary hardcoded variable.
Configuration menu - View commit details
-
Copy full SHA for e002bfb - Browse repository at this point
Copy the full SHA e002bfbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c5a815 - Browse repository at this point
Copy the full SHA 1c5a815View commit details
Commits on Jul 5, 2022
-
The approach used so far was problematic because the maximum directory size is 128 characters which doesn't leave space for the `_candidate` suffix.
Configuration menu - View commit details
-
Copy full SHA for c80c1ab - Browse repository at this point
Copy the full SHA c80c1abView commit details -
Configuration menu - View commit details
-
Copy full SHA for d2e607c - Browse repository at this point
Copy the full SHA d2e607cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fd17ee - Browse repository at this point
Copy the full SHA 6fd17eeView commit details
Commits on Jul 6, 2022
-
Improve docs of
JoinDKGIfEligible
functionCo-authored-by: Piotr Dyraga <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e49262d - Browse repository at this point
Copy the full SHA e49262dView commit details -
Co-authored-by: Piotr Dyraga <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 185fe7f - Browse repository at this point
Copy the full SHA 185fe7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 641466e - Browse repository at this point
Copy the full SHA 641466eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ac87df - Browse repository at this point
Copy the full SHA 5ac87dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed315ca - Browse repository at this point
Copy the full SHA ed315caView commit details -
Configuration menu - View commit details
-
Copy full SHA for fbe3062 - Browse repository at this point
Copy the full SHA fbe3062View commit details -
Mention about disabling subscription monitoring
loop for `DkgStarted` event.
Configuration menu - View commit details
-
Copy full SHA for 7c122d5 - Browse repository at this point
Copy the full SHA 7c122d5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10e12b9 - Browse repository at this point
Copy the full SHA 10e12b9View commit details