Просмотр исходного кода

prune unused imports in example/lead, util/clock

mohab metwally 3 лет назад
Родитель
Сommit
0f7902a968
2 измененных файлов с 4 добавлено и 13 удалено
  1. 3 6
      example/lead.rs
  2. 1 7
      src/util/clock.rs

+ 3 - 6
example/lead.rs

@@ -1,9 +1,6 @@
 use futures::executor::block_on;
-use halo2_proofs::{arithmetic::Field, dev::MockProver};
-use incrementalmerkletree::{bridgetree::BridgeTree, Tree};
+use halo2_proofs::{dev::MockProver};
 use pasta_curves::{
-    arithmetic::CurveAffine,
-    group::{ff::PrimeField, Curve},
     pallas,
 };
 use url::Url;
@@ -61,8 +58,8 @@ fn main() {
 
     let public_inputs: [pallas::Base; LEAD_PUBLIC_INPUT_LEN] = coin.public_inputs_as_array();
 
-    let lead_pk = stakeholder.get_provkingkey();
-    let lead_vk = stakeholder.get_verifyingkey();
+    //let lead_pk = stakeholder.get_provkingkey();
+    //let lead_vk = stakeholder.get_verifyingkey();
 
     //let proof = lead_proof::create_lead_proof(&lead_pk.clone(), coin.clone()).unwrap();
     //lead_proof::verify_lead_proof(&lead_vk, &proof, &public_inputs);

+ 1 - 7
src/util/clock.rs

@@ -1,13 +1,7 @@
 use std::{thread, time::Duration};
-
 use log::debug;
 use url::Url;
-
-use crate::{util::time,
-            util::time::Timestamp,
-            error::Error,
-            Result};
-
+use crate::{util::time::Timestamp, Result};
 
 pub enum Ticks {
     GENESIS { e: u64, sl: u64 },  //genesis epoch