Add equihash_solution to the lib.rs, impl Zcash(De)Serialize for Block
This commit is contained in:
parent
f4a6fec2d8
commit
df5a5f56dd
|
@ -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"
|
||||
|
|
|
@ -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!();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue