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

DKG saga, part 4: On-chain integration for TBTC DKG #3427

Merged
merged 52 commits into from
Jan 4, 2023
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
91b0092
Disabled mock random beacon functionality
pdyraga Dec 2, 2022
93a7b8a
Convert signatures to chain format
pdyraga Dec 2, 2022
0c671c7
Convert public key to chain format
pdyraga Dec 2, 2022
6bfe7ad
TbtcChain OnDKGStarted replaced with a real implementation
pdyraga Dec 2, 2022
f09b904
TbtcChain OnDKGResultSubmitted replaced with a real implementation
pdyraga Dec 2, 2022
882ba38
TbtcChain GetDKGState replaced with a real implementation
pdyraga Dec 2, 2022
67b3a70
Return operator IDs next to operator addresses for ECDSA group selection
pdyraga Dec 2, 2022
eab2ec2
Half-baked implementation of TbtcChain SubmitDKGResult
pdyraga Dec 2, 2022
1539b48
Complete `SubmitDKGResult` implementation
lukasz-zimnoch Dec 7, 2022
169a8d4
Temporary heartbeat mechanism
lukasz-zimnoch Dec 7, 2022
622e8a9
Calculate the DKG result hash in the format expected by the on-chain …
lukasz-zimnoch Dec 8, 2022
3fa8fba
Support for DKG result challenges and approvals
lukasz-zimnoch Dec 9, 2022
138775f
Merge branch 'main' into dkg-part-3
lukasz-zimnoch Dec 9, 2022
bf678e9
Cover more paths in the `TestDkgExecutor_ExecuteDkgValidation` test
lukasz-zimnoch Dec 12, 2022
d65e3c5
Rework DKG result submitter
lukasz-zimnoch Dec 12, 2022
8d48b64
Remove DKG stop pill mechanism
lukasz-zimnoch Dec 12, 2022
dd172b5
Final rework of the DKG stop signals
lukasz-zimnoch Dec 12, 2022
b81ae58
Pass validation outcome as a pointer
lukasz-zimnoch Dec 13, 2022
5d252d7
Simplify DKG context management
lukasz-zimnoch Dec 13, 2022
0cb6d2e
Merge branch 'main' into dkg-part-3
lukasz-zimnoch Dec 13, 2022
da7d0f7
Sort the signing member indices during DKG result submission
lukasz-zimnoch Dec 14, 2022
28e7d58
Do not prefix the Ethereum DKG result hash
lukasz-zimnoch Dec 15, 2022
c1c920f
Compute DKG result hash using an unprefixed group public key
lukasz-zimnoch Dec 15, 2022
47a5ea1
Improve logs on result challenge and approval
lukasz-zimnoch Dec 16, 2022
0e55626
Add a TODO about actions that should be done after a DKG result is ch…
lukasz-zimnoch Dec 16, 2022
3f6dc83
Improve logging of the "non-eligible for DKG result approval" path
lukasz-zimnoch Dec 16, 2022
9904287
Make formatter happy
lukasz-zimnoch Dec 16, 2022
8f30947
Add missing `bridge` assignment
lukasz-zimnoch Dec 16, 2022
7c58a6b
Fail-fast if the chain returns 0 as operator ID
lukasz-zimnoch Dec 16, 2022
bfd5cfb
Change the way how node's operator address and ID are determined
lukasz-zimnoch Dec 19, 2022
0a8eef3
Document `GetOperatorID` Ethereum implementation
lukasz-zimnoch Dec 20, 2022
18429dc
Additional validation within `SelectGroup`
lukasz-zimnoch Dec 20, 2022
436b114
Clarify the need of sorted indexes in the `convertSignaturesToChainFo…
lukasz-zimnoch Dec 20, 2022
07d4b58
Refactor the code responsible for dealing with DKG result hashes
lukasz-zimnoch Dec 20, 2022
cb19259
Additional improvements to `CalculateDKGResultSignatureHash`
lukasz-zimnoch Dec 20, 2022
fdbd05f
Refactoring of the `tbtc.Chain` interface
lukasz-zimnoch Dec 20, 2022
d78aa84
Remove `operatorsIDs` from the `tbtc.localChain` component
lukasz-zimnoch Dec 20, 2022
4a8edfa
Introduce `generateHandlerID` to calculate IDs without relying on `lo…
lukasz-zimnoch Dec 20, 2022
ca63930
Remove redundant fields from `dkgRetryLoop`
lukasz-zimnoch Dec 20, 2022
d659537
Make the DKG retry loop responsible for computing the attempt timeout
lukasz-zimnoch Dec 20, 2022
d05c5c0
Cosmetic improvement in `activeWalletPublicKey` function
lukasz-zimnoch Dec 20, 2022
9ea6adf
Remove the TODO about acting on result challenges
lukasz-zimnoch Dec 22, 2022
b70ccb8
Harden the DKG result validation logic
lukasz-zimnoch Dec 27, 2022
f9c0d1b
Increase DKG result submission and aproval delay steps
lukasz-zimnoch Dec 28, 2022
349bdfa
Remove the chain config from `tbtc.Chain` interface
lukasz-zimnoch Dec 28, 2022
f341e4e
Add TODO about updating `DKGResultSubmittedEvent` subscription
lukasz-zimnoch Dec 28, 2022
de2d182
Improve docs of `finalSigningGroup`
lukasz-zimnoch Dec 28, 2022
a630a63
Fix docstring of `calculateDKGResultSignatureHash` function
lukasz-zimnoch Dec 28, 2022
be0aac8
Remove unnecessary check
lukasz-zimnoch Dec 28, 2022
55d01d6
Improve docs of `convertSignaturesToChainFormat`
lukasz-zimnoch Dec 28, 2022
9536de6
Simplify the `TestDkgExecutor_ExecuteDkgValidation` test
lukasz-zimnoch Dec 28, 2022
70afe95
Merge branch 'main' into dkg-part-3
lukasz-zimnoch Dec 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading