Skip to content

Commit

Permalink
Add check if public key is the same after resharing to the same set o…
Browse files Browse the repository at this point in the history
…f nodes.
  • Loading branch information
litiange committed Jun 30, 2023
1 parent a008b2d commit e4c10b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions share/dkg/pedersen/dkg_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,10 @@ func TestDKGResharing(t *testing.T) {
newSecret, err := share.RecoverSecret(suite, newSShares, thr, defaultN)
require.NoError(t, err)
require.Equal(t, oldSecret.String(), newSecret.String())
// 3.
for i := 0; i < len(dkgs); i++ {
require.Equal(t, shares[i].Public(), newShares[i].Public())
}
}

// Test resharing functionality with one node less
Expand Down

0 comments on commit e4c10b3

Please sign in to comment.