From e69002e0f671a4813e2dba7d6e1c7c72b9bb04ad Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Fri, 10 Nov 2023 14:27:41 -0300 Subject: [PATCH] re-export serde in ciphersuite crates (#573) --- frost-core/CHANGELOG.md | 1 + frost-ed25519/src/lib.rs | 2 +- frost-ed448/src/lib.rs | 2 +- frost-p256/src/lib.rs | 2 +- frost-ristretto255/src/lib.rs | 2 +- frost-secp256k1/src/lib.rs | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frost-core/CHANGELOG.md b/frost-core/CHANGELOG.md index aa15fc1..7e63981 100644 --- a/frost-core/CHANGELOG.md +++ b/frost-core/CHANGELOG.md @@ -22,6 +22,7 @@ Entries are listed in reverse chronological order. * Added `PublicKeyPackage::from_commitment()` and `PublicKeyPackage::from_dkg_commitments` to create a `PublicKeyPackage` from the commitments generated in trusted dealer or distributed key generation. +* Ciphersuite crates now re-export `serde` if enabled. ## Released diff --git a/frost-ed25519/src/lib.rs b/frost-ed25519/src/lib.rs index ca448a8..b774c17 100644 --- a/frost-ed25519/src/lib.rs +++ b/frost-ed25519/src/lib.rs @@ -23,7 +23,7 @@ use frost_core as frost; mod tests; // Re-exports in our public API -pub use frost_core::{Ciphersuite, Field, FieldError, Group, GroupError}; +pub use frost_core::{serde, Ciphersuite, Field, FieldError, Group, GroupError}; pub use rand_core; /// An error. diff --git a/frost-ed448/src/lib.rs b/frost-ed448/src/lib.rs index 63b7a40..a73a1de 100644 --- a/frost-ed448/src/lib.rs +++ b/frost-ed448/src/lib.rs @@ -24,7 +24,7 @@ use frost_core as frost; mod tests; // Re-exports in our public API -pub use frost_core::{Ciphersuite, Field, FieldError, Group, GroupError}; +pub use frost_core::{serde, Ciphersuite, Field, FieldError, Group, GroupError}; pub use rand_core; /// An error. diff --git a/frost-p256/src/lib.rs b/frost-p256/src/lib.rs index f95a7ed..90f616d 100644 --- a/frost-p256/src/lib.rs +++ b/frost-p256/src/lib.rs @@ -25,7 +25,7 @@ use frost_core as frost; mod tests; // Re-exports in our public API -pub use frost_core::{Ciphersuite, Field, FieldError, Group, GroupError}; +pub use frost_core::{serde, Ciphersuite, Field, FieldError, Group, GroupError}; pub use rand_core; /// An error. diff --git a/frost-ristretto255/src/lib.rs b/frost-ristretto255/src/lib.rs index e007a2f..eabb403 100644 --- a/frost-ristretto255/src/lib.rs +++ b/frost-ristretto255/src/lib.rs @@ -20,7 +20,7 @@ use frost_core as frost; mod tests; // Re-exports in our public API -pub use frost_core::{Ciphersuite, Field, FieldError, Group, GroupError}; +pub use frost_core::{serde, Ciphersuite, Field, FieldError, Group, GroupError}; pub use rand_core; /// An error. diff --git a/frost-secp256k1/src/lib.rs b/frost-secp256k1/src/lib.rs index 1e7d1fb..25501bf 100644 --- a/frost-secp256k1/src/lib.rs +++ b/frost-secp256k1/src/lib.rs @@ -26,7 +26,7 @@ use frost_core as frost; mod tests; // Re-exports in our public API -pub use frost_core::{Ciphersuite, Field, FieldError, Group, GroupError}; +pub use frost_core::{serde, Ciphersuite, Field, FieldError, Group, GroupError}; pub use rand_core; /// An error.