From de314fed2c5ab767fe2d94cdc94a38f1351ff709 Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 16 Nov 2024 19:11:25 -0500 Subject: [PATCH] soft fork, rename to blahaj --- Cargo.toml | 21 ++++++++------------- benches/benchmarks.rs | 2 +- src/lib.rs | 12 ++++++------ src/share.rs | 2 +- 4 files changed, 16 insertions(+), 21 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3200ae8..d34d1f9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,21 +1,16 @@ [package] -name = "sharks" +name = "blahaj" version = "0.5.0" -authors = ["Aitor Ruano "] -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 "] +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"] diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs index b80eb17..0f49d58 100644 --- a/benches/benchmarks.rs +++ b/benches/benchmarks.rs @@ -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); diff --git a/src/lib.rs b/src/lib.rs index b76467c..ae365ac 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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]); diff --git a/src/share.rs b/src/share.rs index c9d1592..9fd3104 100644 --- a/src/share.rs +++ b/src/share.rs @@ -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) {}