10 releases

new 0.5.2 Dec 9, 2024
0.5.0 Oct 23, 2024
0.4.1 Jul 23, 2024
0.2.2 Mar 25, 2024

#1604 in Cryptography

Download history 158/week @ 2024-08-22 63/week @ 2024-08-29 7/week @ 2024-09-05 80/week @ 2024-09-12 211/week @ 2024-09-19 323/week @ 2024-09-26 1462/week @ 2024-10-03 1828/week @ 2024-10-10 1126/week @ 2024-10-17 300/week @ 2024-10-24 362/week @ 2024-10-31 407/week @ 2024-11-07 426/week @ 2024-11-14 629/week @ 2024-11-21 495/week @ 2024-11-28 616/week @ 2024-12-05

2,282 downloads per month
Used in 3 crates

MIT/Apache

56KB
933 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

~2.7–4.5MB
~94K SLoC