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

Can we get rid of `serde(bound)` annotations? #10

Open fjarri opened 1 year ago

fjarri commented 1 year ago

Because of some dark magic in serde-derive, we often need to specify explicit bounds when deriving Serialize/Deserialize. See https://serde.rs/attr-bound.html for the explanation of the problem. Is it possible to get rid of them somehow?

fjarri commented 1 year ago

The issue is caused by serde's bad bound heuristic for generic types. See https://github.com/serde-rs/serde/issues/2463

fjarri commented 1 month ago

Note: may be possible if https://github.com/ModProg/derive-where/issues/100 is fixed.