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

#2041 in Cryptography

Download history 83/week @ 2024-02-16 73/week @ 2024-02-23 17/week @ 2024-03-01 167/week @ 2024-03-08 134/week @ 2024-03-15 221/week @ 2024-03-22 308/week @ 2024-03-29 105/week @ 2024-04-05 193/week @ 2024-04-12 68/week @ 2024-04-19 50/week @ 2024-04-26 56/week @ 2024-05-03

383 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

~3–4.5MB
~59K SLoC