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 v3.0.0 #158

Merged
merged 41 commits into from
Nov 19, 2024
Merged

DKG v3.0.0 #158

merged 41 commits into from
Nov 19, 2024

Conversation

MatusKysel
Copy link
Contributor

No description provided.

MatusKysel and others added 30 commits April 17, 2024 19:15
* aligment with new specs

* fix ssz generation

* align output in gwei according new eth2 package

* remove duplicated crypto functions

* update spec

* align with latest spec

* local json encoding

* change it ssvlabs

* switch to correct spec

* update json marshalling at wire (#99)

* lint

---------

Co-authored-by: Pavel Krolevets <[email protected]>
* initial resigning

* add routes + flow

* working resigning with result validation

* fix tests

* add integration tests for resiging

* update integration tests to use cli commands

* initial spec alignment + reshare module

* working resharing

* add EIP1271 owner signature verification

* update resharing + add docker demo for resharing

* add reshare threshold + integration tests

* add threshold integration tests

* fix logic at message processing

* add eip1271 sig integration tests

* add eip1271 sig verification to resign + integration/docker tests

* add eip1271 sig resign test + bulk tests

* fix/update unit + integration tests

* update tests + fix bls set

* PR comments resolved #1

* PR comments resolved #2

* PR comments resolved #3

* PR comments resolved #4

* PR comments resolved #5

* PR comments resolved #6

* fix tests + docker build update

* update CI

* fix test

* lint

* add more reshare integration tests

* go 1.23

* add unit tests for join/disjoin sets of operators

* lint

* add proofs validation before sending + more reshare threshold integration tests

* fix unit tests

* lint

* fix review comments

* remove typo and unused struct

---------

Co-authored-by: Matus Kysel <[email protected]>
* fix traingling / on ping

* add current version to keyshare

* Put correct config format to cli flags
* add refactor from past

* refactor resign & reshare

* fix critics
* rename to ssvlabs

* fix the tests
* copyright pavel

* fix typo

* readme update

---------

Co-authored-by: Matus Kysel <[email protected]>
fix amount marshaling and keyshare version
* add filepath.IsLocal checks to path flags

* fix tests
* add gnosis js examples

* add multisig support

* update on-chain gnosis example

* add off-chain multisig gnosis example

* add support to multisig wallets by seperating the stage of submitting resign/reshare message and submitting signature

* update reshare bulk marshaling

* update operator handlers

* update integration test

* update Reshare and Resign hash from hash of tree root to hash of marshalled bytes

* working json bulk resign/reshare decoding

* fix bugs in hashing messages and initiating operator resign/reshare messages map

* fix operators marshalling

* Update test

* simplify code

* add error handling

* revert changes on operator side to process resign/reshare message and its signature at the same stage

* udpate initiator inputs to start resign/reshare to pass in signatures instead of secret keys

* update test

* implement bulk resign and resshare

* update cli to support bulk resign/reshare

* add clis for generating resign/reshare messages

* remove a comment

* fix bugs and update tests

* change nonces input to a single nonce

* update cli to support proofs as a string

* fix bugs in cli and update tests

* update tests

* update tests

* fix wrong formatting bug in writing resign/reshare messages to json file

* fix spellings

* fix spellings

* add bulk reshare tests

* update docker for generating resign/reshare messages

* fix comments

* remove unused function

* fix comments

* update variable naming in multisig tests

* lint

* increase timeout for tests

* relax path requirements

* fix tests

---------

Co-authored-by: pavelkrolevets <[email protected]>
Co-authored-by: Matus Kysel <[email protected]>
* add multisig check to health_check

* lint

* update message

* add ping test

* update test

* minor fixes
* change rate limits and instance time to mitigate ddos

* fix instance test

* relax request limita to routes

* increase test time

* lint
…VE_BALANCE (#138)

* pectra ready

* Update integration_test/init_bulk_test.go

Co-authored-by: Matus Kysel <[email protected]>

* Update integration_test/init_bulk_test.go

Co-authored-by: Matus Kysel <[email protected]>

* fix amount af verify

* fix operator tests

* comment out some 100 tests

---------

Co-authored-by: Matus Kysel <[email protected]>
* add json marshal/unmarshal for resign/reshare json

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* Update pkgs/wire/types_json.go

Co-authored-by: Matus Kysel <[email protected]>

* comment out test with changed json encoding

---------

Co-authored-by: Matus Kysel <[email protected]>
* add 0x to resign/reshare json fields + update docker configs

* fix DecodeProofsString()

* add comments to examples
* fix generation command

* review fixes

* fix the tests
* change message hash to align with Gnosis SDK for multisig

* add one more Metamask sig example

* finalize Metamask example

* update react example

* update react

* add log of message hash to operator

* fix tests

* critic
* fix amount check at deposit validate lost after merges

* fix tests

* update tests

* update tests
* refactor flags + add tlsInsecure flag + change default TLS config

* update docker config + add default CA cert path /etc/ssl/certs/ca-certificates.crt

* lint

* rename filenames at /flags
* add messages to ping/init/reshare

* make ssz errors more readable

* wrap errors and remove panic at parsing ssz error

* add error for incorrect offset to pong message

* lint

* minor fix
pavelkrolevets and others added 8 commits November 7, 2024 15:42
* fix audit issue 5.3 Crash by Malicious Operator

* add unit test for instance check

* add default
* add support for owner change

* add test and fix owner change

* fix more tests
)

* fix 5.10 Reshare Denial-of-Service via Predicable
Instance IDs

* refactor

* lint
* add broadcast for response and justification phases

* update message + refactor

* lint
* return fix for Arbitrary Path Access

* fix docker to use local paths (#160)

---------

Co-authored-by: Pavel Krolevets <[email protected]>
@MatusKysel MatusKysel requested a review from y0sher November 19, 2024 10:19
… IDs (#162)

* Complete fix of 5.4 Reshare Denial-of-Service via Predicable Instance IDs

* fix tests
@MatusKysel MatusKysel merged commit 3cf2e91 into main Nov 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants