Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Jan 29, 2024
1 parent 935be2d commit 280c37e
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ferveo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
#[cfg(feature = "bindings-wasm")]
extern crate alloc;

use ark_ec::pairing::Pairing;
use itertools::zip_eq;

#[cfg(feature = "bindings-python")]
pub mod bindings_python;

Expand Down Expand Up @@ -120,17 +117,6 @@ pub enum Error {

pub type Result<T> = std::result::Result<T, Error>;

pub fn make_pvss_map<E: Pairing>(
transcripts: &[PubliclyVerifiableSS<E>],
validators: &[Validator<E>],
) -> PVSSMap<E> {
let mut pvss_map: PVSSMap<E> = PVSSMap::new();
zip_eq(transcripts, validators).for_each(|(transcript, validator)| {
pvss_map.insert(validator.address.clone(), transcript.clone());
});
pvss_map
}

#[cfg(test)]
mod test_dkg_full {
use std::collections::HashMap;
Expand Down

0 comments on commit 280c37e

Please sign in to comment.