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 authored and AnomalRoil committed Mar 13, 2024
1 parent e1d90cf commit e7d708e
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 @@ -668,6 +668,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 e7d708e

Please sign in to comment.