I'm integrating cggmp21 into the signers, and found a few minor things that can make API better:
Reexport most commonly used structs to the library root
E.g. KeyShare, IncompleteKeyShare, Signature, Presignature, PartialSignature, DataToSign, all error types, supported curves, etc.
Reexport more libraries: generic-ec
Add KeyShare::public_key that returns shared public key corresponding to that key share
Add KeyShare::{min_signers, coholders} that return t and n
I'm integrating cggmp21 into the signers, and found a few minor things that can make API better:
KeyShare
,IncompleteKeyShare
,Signature
,Presignature
,PartialSignature
,DataToSign
, all error types, supported curves, etc.generic-ec
KeyShare::public_key
that returns shared public key corresponding to that key shareKeyShare::{min_signers, coholders}
that returnt
andn
Add
ThresholdKeygenBuilder
aliasThere's alias for non-threshold keygen builder:
https://github.com/dfns-labs/cggmp21/blob/92258252291abffa01ca47e98ac197f33c1c7cce/cggmp21/src/keygen.rs#L40-L44
We should have a similar for threshold keygen:
L = ReasonablySecure
andD = Sha256
to be a default choice in all structs and type aliases E.g.