|
|
@ -39,7 +39,6 @@ use zcash_primitives::{ |
|
|
|
primitives::{PaymentAddress}, |
|
|
|
primitives::{PaymentAddress}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use crate::lightclient::{LightClientConfig}; |
|
|
|
use crate::lightclient::{LightClientConfig}; |
|
|
|
|
|
|
|
|
|
|
|
mod data; |
|
|
|
mod data; |
|
|
@ -58,7 +57,6 @@ fn now() -> f64 { |
|
|
|
SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs() as f64 |
|
|
|
SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_secs() as f64 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Sha256(Sha256(value))
|
|
|
|
/// Sha256(Sha256(value))
|
|
|
|
pub fn double_sha256(payload: &[u8]) -> Vec<u8> { |
|
|
|
pub fn double_sha256(payload: &[u8]) -> Vec<u8> { |
|
|
|
let h1 = Sha256::digest(&payload); |
|
|
|
let h1 = Sha256::digest(&payload); |
|
|
|