3 releases

0.2.3 Apr 1, 2024
0.2.2 Mar 25, 2024
0.2.1 Mar 21, 2024
0.2.0 Mar 12, 2024
0.1.0 Feb 22, 2024

#2336 in Cryptography

Download history 110/week @ 2024-02-17 55/week @ 2024-02-24 10/week @ 2024-03-02 174/week @ 2024-03-09 168/week @ 2024-03-16 183/week @ 2024-03-23 312/week @ 2024-03-30 111/week @ 2024-04-06 180/week @ 2024-04-13 83/week @ 2024-04-20 35/week @ 2024-04-27 66/week @ 2024-05-04 55/week @ 2024-05-11

241 downloads per month
Used in 2 crates

MIT/Apache

55KB
918 lines

Key share of Threshold Signature Scheme (TSS)

TSS protocols often share the same structure of key share. Having a separate crate with definition of the key share struct help reusing the code, keeping different implementations compatible and interopable.

The crate provides DirtyCoreKeyShare that contains data such as: secret share, other signers commitments, public key and etc.

DirtyCoreKeyShare may contain any data, not necessarily consistent. TSS protocol implementations typically don't want to handle inconsistent key shares and would rather assume that it's valid. Valid<T> is a type-guard stating that the value T it holds was validated. So, Valid<DirtyCoreKeyShare> (or CoreKeyShare type alias) can be used to express that only valid key shares are accepted.

Dependencies

~1.7–3MB
~59K SLoC