entropyxyz / synedrion

Implementation of Canetti-Gennaro-Goldfeder-Makriyannis-Peled threshold signing scheme
https://docs.rs/synedrion
GNU Affero General Public License v3.0
63 stars 10 forks source link

Check range errors at the protocol level #68

Open fjarri opened 11 months ago

fjarri commented 11 months ago

There are multiple places at the protocol level where we can't be sure about the self-consistency of party idx and the total number of parties. e.g.:

These should be asserted.

fjarri commented 1 week ago

We are using maps/sets keyed by an ID type now, so this issue is largely invalidated. To close it completely we need to enable clippy::indexing_slicing lint.