Browse Source

Move Equihash validator into zcash_primitives

master
Jack Grigg 5 years ago
parent
commit
d78c94b2a2
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
  1. 3
      librustzcash/src/rustzcash.rs
  2. 2
      zcash_primitives/src/block.rs
  3. 0
      zcash_primitives/src/block/equihash.rs

3
librustzcash/src/rustzcash.rs

@ -45,6 +45,7 @@ use std::ffi::OsString;
use std::os::windows::ffi::OsStringExt; use std::os::windows::ffi::OsStringExt;
use zcash_primitives::{ use zcash_primitives::{
block::equihash,
merkle_tree::CommitmentTreeWitness, merkle_tree::CommitmentTreeWitness,
note_encryption::sapling_ka_agree, note_encryption::sapling_ka_agree,
primitives::{Diversifier, Note, PaymentAddress, ProofGenerationKey, ViewingKey}, primitives::{Diversifier, Note, PaymentAddress, ProofGenerationKey, ViewingKey},
@ -58,8 +59,6 @@ use zcash_proofs::{
sapling::{SaplingProvingContext, SaplingVerificationContext}, sapling::{SaplingProvingContext, SaplingVerificationContext},
}; };
pub mod equihash;
#[cfg(test)] #[cfg(test)]
mod tests; mod tests;

2
zcash_primitives/src/block.rs

@ -6,6 +6,8 @@ use std::ops::Deref;
use crate::serialize::Vector; use crate::serialize::Vector;
pub mod equihash;
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
pub struct BlockHash(pub [u8; 32]); pub struct BlockHash(pub [u8; 32]);

0
librustzcash/src/equihash.rs → zcash_primitives/src/block/equihash.rs

Loading…
Cancel
Save