Add pubkeystore mod

This commit is contained in:
Paul Hauner 2018-07-21 13:40:49 +10:00
parent 594c34388e
commit ae9aef5bce
3 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,6 @@
#[macro_use]
extern crate slog;
pub mod pubkeystore;
pub mod state;
pub mod utils;

7
src/pubkeystore/mod.rs Normal file
View File

@ -0,0 +1,7 @@
use super::state::block::Block;
#[allow(unused_variables)]
pub fn verify_block(block: &Block, proposer: &usize) -> bool {
// TODO: fetch proposer pubkey and verify it.
return true;
}

View File

@ -4,6 +4,7 @@ extern crate blake2;
extern crate bytes;
use super::utils;
use super::pubkeystore;
pub mod active_state;
pub mod crystallized_state;