mohab metwally 3 лет назад
Родитель
Сommit
0222c9c9a2
3 измененных файлов с 5 добавлено и 4 удалено
  1. 1 1
      src/crypto/leadcoin.rs
  2. 2 2
      src/stakeholder/mod.rs
  3. 2 1
      src/zk/circuit/lead_contract.rs

+ 1 - 1
src/crypto/leadcoin.rs

@@ -7,7 +7,7 @@ use crate::{
         constants::MERKLE_DEPTH_ORCHARD,
         merkle_node::MerkleNode,
         util::{mod_r_p, pedersen_commitment_base},
-        keypair::{Keypair, SecretKey, PublicKey},
+        keypair::{Keypair},
     },
     zk::circuit::lead_contract::LeadContract,
 };

+ 2 - 2
src/stakeholder/mod.rs

@@ -21,13 +21,13 @@ use crate::{
         address::Address,
         coin::OwnCoin,
         constants::MERKLE_DEPTH,
-        keypair::{Keypair, PublicKey, SecretKey},
+        keypair::{PublicKey, SecretKey},
         leadcoin::LeadCoin,
         merkle_node::MerkleNode,
         note::{EncryptedNote, Note},
         nullifier::Nullifier,
         proof::{Proof, ProvingKey, VerifyingKey},
-        schnorr::{SchnorrPublic, SchnorrSecret, Signature},
+        schnorr::{SchnorrSecret},
     },
     net::{MessageSubscription, P2p, Settings, SettingsPtr},
     node::state::{state_transition, ProgramState, StateUpdate},

+ 2 - 1
src/zk/circuit/lead_contract.rs

@@ -298,12 +298,13 @@ impl Circuit<pallas::Base> for LeadContract {
             Value::known(pallas::Base::from(PRF_NULLIFIER_PREFIX)),
         )?;
         // staking coin timestamp
+        /*
         let coin_timestamp = self.load_private(
             layouter.namespace(|| "load coin time stamp"),
             config.advices[0],
             self.coin_timestamp,
         )?;
-
+        */
         // staking coin nonce
         let coin_nonce: AssignedCell<Fp, Fp> = self.load_private(
             layouter.namespace(|| "load coin nonce"),