diff --git a/CHANGELOG.md b/CHANGELOG.md index c08be68..cd12123 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.3.2] - 2020-03-9 +### Changed +- Share structs now derives the `Clone` trait + ## [0.3.1] - 2020-01-23 ### Changed - Sharks recover method now accepts any iterable collection diff --git a/Cargo.toml b/Cargo.toml index 11eea96..7866bdf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sharks" -version = "0.3.1" +version = "0.3.2" authors = ["Aitor Ruano "] description = "Fast, small and secure Shamir's Secret Sharing library crate" homepage = "https://github.com/c0dearm/sharks" diff --git a/src/share.rs b/src/share.rs index c7cd53c..c6b861b 100644 --- a/src/share.rs +++ b/src/share.rs @@ -21,6 +21,7 @@ use super::field::GF256; /// let shares_bytes: Vec> = ask_shares(); /// let shares: Vec = shares_bytes.iter().map(|s| Share::from(s.as_slice())).collect(); /// let secret = sharks.recover(&shares).unwrap(); +#[derive(Clone)] pub struct Share { pub x: GF256, pub y: Vec,