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

Keep only one copy of the expanded Paillier public key #101

Open fjarri opened 9 months ago

fjarri commented 9 months ago

100 introduced public key bundling with Paillier ciphertexts. The expanded public key is a pretty big structure (~10kb in size), so it may be worth it to instead have it keep an Arc of the contents for cheaper cloning (which we inevitably have to do during calculations).