soft fork, rename to blahaj

This commit is contained in:
Ryan Heywood 2024-11-16 19:11:25 -05:00
parent e7e23ba899
commit de314fed2c
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
4 changed files with 16 additions and 21 deletions

View File

@ -1,21 +1,16 @@
[package]
name = "sharks"
name = "blahaj"
version = "0.5.0"
authors = ["Aitor Ruano <codearm@pm.me>"]
description = "Fast, small and secure Shamir's Secret Sharing library crate"
homepage = "https://github.com/c0dearm/sharks"
repository = "https://github.com/c0dearm/sharks"
authors = ["Ryan Heywood <ryan@distrust.co>"]
description = "Fast, small, and secure Shamir's Secret Sharing"
homepage = "https://git.distrust.co/public/blahaj"
repository = "https://git.distrust.co/public/blahaj"
readme = "README.md"
keywords = ["shamir", "secret", "sharing", "share", "crypto"]
keywords = ["shamir", "secret", "sharing", "share", "cryptography"]
categories = ["algorithms", "cryptography", "mathematics"]
license = "MIT/Apache-2.0"
edition = "2018"
license = "MIT"
edition = "2021"
[badges]
maintenance = { status = "actively-developed" }
codecov = { repository = "c0dearm/sharks" }
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["std", "zeroize_memory"]
std = ["rand/std", "rand/std_rng"]

View File

@ -1,7 +1,7 @@
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use std::convert::TryFrom;
use sharks::{Share, Sharks};
use blahaj::{Share, Sharks};
fn dealer(c: &mut Criterion) {
let sharks = Sharks(255);

View File

@ -2,7 +2,7 @@
//!
//! Usage example (std):
//! ```
//! use sharks::{ Sharks, Share };
//! use blahaj::{ Sharks, Share };
//!
//! // Set a minimum threshold of 10 shares
//! let sharks = Sharks(10);
@ -20,7 +20,7 @@
//!
//! Usage example (no std):
//! ```
//! use sharks::{ Sharks, Share };
//! use blahaj::{ Sharks, Share };
//! use rand_chacha::rand_core::SeedableRng;
//!
//! // Set a minimum threshold of 10 shares
@ -53,7 +53,7 @@ pub use share::Share;
///
/// Usage example:
/// ```
/// # use sharks::{ Sharks, Share };
/// # use blahaj::{ Sharks, Share };
/// // Set a minimum threshold of 10 shares
/// let sharks = Sharks(10);
/// // Obtain an iterator over the shares for secret [1, 2, 3, 4]
@ -79,7 +79,7 @@ impl Sharks {
///
/// Example:
/// ```
/// # use sharks::{ Sharks, Share };
/// # use blahaj::{ Sharks, Share };
/// # use rand_chacha::rand_core::SeedableRng;
/// # let sharks = Sharks(3);
/// // Obtain an iterator over the shares for secret [1, 2]
@ -106,7 +106,7 @@ impl Sharks {
///
/// Example:
/// ```
/// # use sharks::{ Sharks, Share };
/// # use blahaj::{ Sharks, Share };
/// # let sharks = Sharks(3);
/// // Obtain an iterator over the shares for secret [1, 2]
/// let dealer = sharks.dealer(&[1, 2]);
@ -124,7 +124,7 @@ impl Sharks {
///
/// Example:
/// ```
/// # use sharks::{ Sharks, Share };
/// # use blahaj::{ Sharks, Share };
/// # use rand_chacha::rand_core::SeedableRng;
/// # let sharks = Sharks(3);
/// # let mut rng = rand_chacha::ChaCha8Rng::from_seed([0x90; 32]);

View File

@ -12,7 +12,7 @@ use zeroize::Zeroize;
///
/// Usage example:
/// ```
/// use sharks::{Sharks, Share};
/// use blahaj::{Sharks, Share};
/// use core::convert::TryFrom;
/// # use rand_chacha::rand_core::SeedableRng;
/// # fn send_to_printer(_: Vec<u8>) {}