fix benches and examples

master
Niko PLP 1 month ago
parent f1105291ad
commit f3fee569e0
  1. 6
      benches/bench.rs
  2. 2
      examples/basic_pkc.rs
  3. 2
      examples/threshold_enc.rs
  4. 2
      examples/threshold_sig.rs

@ -1,7 +1,7 @@
use criterion::{criterion_group, criterion_main, Criterion};
use ff::Field;
use threshold_crypto::poly::Poly;
use threshold_crypto::Fr;
use ng_threshold_crypto::poly::Poly;
use ng_threshold_crypto::Fr;
const TEST_DEGREES: [usize; 4] = [5, 10, 20, 40];
const TEST_THRESHOLDS: [usize; 4] = [5, 10, 20, 40];
@ -91,10 +91,10 @@ mod poly_benches {
mod public_key_set_benches {
use super::*;
use ng_threshold_crypto::SecretKeySet;
use rand::SeedableRng;
use rand_xorshift::XorShiftRng;
use std::collections::BTreeMap;
use threshold_crypto::SecretKeySet;
/// Benchmarks combining signatures
fn combine_signatures(c: &mut Criterion) {

@ -1,6 +1,6 @@
use bincode::{deserialize, serialize};
use ng_threshold_crypto::{PublicKey, SecretKey, Signature};
use serde::{Deserialize, Serialize};
use threshold_crypto::{PublicKey, SecretKey, Signature};
#[derive(Deserialize, Serialize)]
struct SignedMsg {

@ -1,6 +1,6 @@
use std::collections::BTreeMap;
use threshold_crypto::{
use ng_threshold_crypto::{
Ciphertext, DecryptionShare, PublicKey, PublicKeySet, PublicKeyShare, SecretKeySet,
SecretKeyShare,
};

@ -1,6 +1,6 @@
use std::collections::BTreeMap;
use threshold_crypto::{
use ng_threshold_crypto::{
PublicKeySet, PublicKeyShare, SecretKeySet, SecretKeyShare, Signature, SignatureShare,
};

Loading…
Cancel
Save