From c23a322a5c573419adaa27d0bc9ae6d34cedb629 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 7 Aug 2024 15:13:37 -0700 Subject: [PATCH 1/3] removes std dependency for frost, this is no longer needed with 2.0.0-rc.0 --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 2ef7102..522d073 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,7 +63,7 @@ std = ["blake2b_simd/std", "thiserror", "zeroize", "alloc", "serde"] # conditional compilation for serde not complete (issue #9) alloc = ["hex"] nightly = [] -frost = ["std", "frost-rerandomized"] +frost = ["frost-rerandomized"] serde = ["dep:serde", "frost-rerandomized?/serde"] default = ["std"] From 98e48b4953b2cf98bea96107bbde800534e98d28 Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Thu, 8 Aug 2024 11:35:04 -0300 Subject: [PATCH 2/3] additional adjustments --- Cargo.lock | 1 + Cargo.toml | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c3c56f4..10bc2ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -409,6 +409,7 @@ dependencies = [ "serde", "serde_json", "serdect", + "thiserror", "thiserror-nostd-notrait", "visibility", "zeroize", diff --git a/Cargo.toml b/Cargo.toml index 522d073..890f04a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ pasta_curves = { version = "0.5", default-features = false } rand_core = { version = "0.6", default-features = false } serde = { version = "1", optional = true, features = ["derive"] } thiserror = { version = "1.0", optional = true } -frost-rerandomized = { version = "2.0.0-rc.0", optional = true } +frost-rerandomized = { version = "2.0.0-rc.0", optional = true, default-features = false } [dependencies.zeroize] version = "1" @@ -59,11 +59,11 @@ default-features = false features = ["alloc"] [features] -std = ["blake2b_simd/std", "thiserror", "zeroize", "alloc", +std = ["blake2b_simd/std", "thiserror", "zeroize", "alloc", "frost-rerandomized?/std", "serde"] # conditional compilation for serde not complete (issue #9) alloc = ["hex"] nightly = [] -frost = ["frost-rerandomized"] +frost = ["frost-rerandomized", "alloc"] serde = ["dep:serde", "frost-rerandomized?/serde"] default = ["std"] From 9ac52c5c60e454b0032d78a22c05fb79aae1d51e Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Thu, 8 Aug 2024 16:53:56 -0300 Subject: [PATCH 3/3] Update Cargo.toml Co-authored-by: jowparks --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 890f04a..694b688 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -31,7 +31,7 @@ pasta_curves = { version = "0.5", default-features = false } rand_core = { version = "0.6", default-features = false } serde = { version = "1", optional = true, features = ["derive"] } thiserror = { version = "1.0", optional = true } -frost-rerandomized = { version = "2.0.0-rc.0", optional = true, default-features = false } +frost-rerandomized = { version = "2.0.0-rc.0", optional = true, default-features = false, features = ["serialization", "cheater-detection"] } [dependencies.zeroize] version = "1"