Skip to content

Commit 59d1da2

Browse files
committed
fix no-std issues and warnings
1 parent aa4b5fb commit 59d1da2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

frost-core/src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -636,8 +636,10 @@ where
636636

637637
Ok(signature)
638638
}
639+
639640
/// Optional cheater detection feature
640641
/// Each share is verified to find the cheater
642+
#[cfg(feature = "cheater-detection")]
641643
fn detect_cheater<C: Ciphersuite>(
642644
group_commitment: &GroupCommitment<C>,
643645
pubkeys: &keys::PublicKeyPackage<C>,

frost-core/src/traits.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use core::{
44
fmt::Debug,
55
ops::{Add, Mul, Sub},
66
};
7-
use std::borrow::Cow;
87

9-
use alloc::{collections::BTreeMap, vec::Vec};
8+
use alloc::{borrow::Cow, collections::BTreeMap, vec::Vec};
109
use rand_core::{CryptoRng, RngCore};
1110

1211
use crate::{

0 commit comments

Comments
 (0)