2 releases

0.6.1 Aug 17, 2023
0.6.0 Jul 19, 2023

#1390 in Cryptography

Download history 13/week @ 2024-03-14 43/week @ 2024-03-21 52/week @ 2024-03-28 21/week @ 2024-04-04 10/week @ 2024-04-11 26/week @ 2024-04-18 31/week @ 2024-04-25 9/week @ 2024-05-02 6/week @ 2024-05-09 11/week @ 2024-05-16 11/week @ 2024-05-23 17/week @ 2024-05-30 7/week @ 2024-06-06 10/week @ 2024-06-13 24/week @ 2024-06-20 11/week @ 2024-06-27

54 downloads per month
Used in 3 crates (via adss)

MIT/Apache

24KB
470 lines

Sharks

Build Crates Docs

Fast, small and secure Shamir's Secret Sharing library in Rust. This is a fork of the original sharks crate used with the STAR protocol.

Documentation:

Usage

Add this to your Cargo.toml:

[dependencies]
star-sharks = "0.6"

If your environment doesn't support std:

[dependencies]
star-sharks = { version = "0.6", default-features = false }

To get started using Sharks, see the reference docs

Features

Developer friendly

The API is simple and to the point, with minimal configuration.

Fast and small

The code is as idiomatic and clean as possible, with minimum external dependencies.

Secure by design

The implementation forbids the user to choose parameters that would result in an insecure application, like generating more shares than what's allowed by the finite field length.

This implementation uses a Sophie Germain prime (2^128 + 12451).

Testing

This crate contains both unit and benchmark tests (as well as the examples included in the docs). You can run them with cargo test and cargo bench.

Contributing

If you find a bug or would like a new feature, open a new issue. Please see the security page for information on reporting vulnerabilities.

License

Sharks is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.

Dependencies

~3.5MB
~80K SLoC