Move Equihash validator into zcash_primitives

This commit is contained in:
Jack Grigg 2019-08-02 10:50:32 +01:00
parent ad33798244
commit d78c94b2a2
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
3 changed files with 3 additions and 2 deletions

View File

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

View File

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