Add equihash_solution to the lib.rs, impl Zcash(De)Serialize for Block

This commit is contained in:
Deirdre Connolly 2019-09-26 22:38:18 -04:00 committed by Deirdre Connolly
parent f4a6fec2d8
commit df5a5f56dd
3 changed files with 14 additions and 0 deletions

View File

@ -10,4 +10,5 @@ edition = "2018"
byteorder = "1.3"
chrono = "0.4"
failure = "0.1"
#hex = "0.4" This conflicts with tracing-subscriber?
sha2 = "0.8"

View File

@ -114,3 +114,15 @@ pub struct Block {
/// The block transactions.
pub transactions: Vec<Transaction>,
}
impl ZcashSerialize for Block {
fn zcash_serialize<W: io::Write>(&self, writer: W) -> Result<(), SerializationError> {
unimplemented!();
}
}
impl ZcashDeserialize for Block {
fn zcash_deserialize<R: io::Read>(reader: R) -> Result<Self, SerializationError> {
unimplemented!();
}
}

View File

@ -8,6 +8,7 @@ mod merkle_tree;
mod sha256d_writer;
pub mod block;
pub mod equihash_solution;
pub mod note_commitment_tree;
pub mod serialization;
pub mod transaction;