From a7c65902d6e8a9dcd581d2245199d764ad3f8c32 Mon Sep 17 00:00:00 2001 From: Joey Yandle Date: Tue, 28 Nov 2023 13:25:45 -0500 Subject: [PATCH] use p256k1 v6 to get proper serde support for curve structs --- Cargo.toml | 2 +- src/common.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 658ebe0b..64072cd8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ num-traits = "0.2" polynomial = { version = "0.2.5", features = ["serde"] } primitive-types = "0.12" rand_core = "0.6" -p256k1 = { version = "5.5", default-features = false } +p256k1 = { version = "6.0", default-features = false } serde = { version = "1.0", features = ["derive"] } sha2 = "0.10" thiserror = "1.0" diff --git a/src/common.rs b/src/common.rs index 816dbec0..b0aebedf 100644 --- a/src/common.rs +++ b/src/common.rs @@ -120,7 +120,7 @@ pub struct SignatureShare { #[allow(non_snake_case)] /// An aggregated group signature -#[derive(Clone)] +#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)] pub struct Signature { /// The sum of the public nonces with commitments to the signed message pub R: Point,