Crates.io | star-sharks |
lib.rs | star-sharks |
version | 0.6.1 |
source | src |
created_at | 2023-07-19 17:40:06.298061 |
updated_at | 2023-08-17 19:40:33.397791 |
description | Shamir's Secret Sharing library for the STAR protocol |
homepage | |
repository | https://github.com/brave/sta-rs |
max_upload_size | |
id | 920596 |
size | 40,208 |
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:
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
The API is simple and to the point, with minimal configuration.
The code is as idiomatic and clean as possible, with minimum external dependencies.
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).
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
.
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.
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.