Add pubkeystore mod
This commit is contained in:
parent
594c34388e
commit
ae9aef5bce
@ -1,5 +1,6 @@
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate slog;
|
extern crate slog;
|
||||||
|
|
||||||
|
pub mod pubkeystore;
|
||||||
pub mod state;
|
pub mod state;
|
||||||
pub mod utils;
|
pub mod utils;
|
||||||
|
7
src/pubkeystore/mod.rs
Normal file
7
src/pubkeystore/mod.rs
Normal 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;
|
||||||
|
}
|
@ -4,6 +4,7 @@ extern crate blake2;
|
|||||||
extern crate bytes;
|
extern crate bytes;
|
||||||
|
|
||||||
use super::utils;
|
use super::utils;
|
||||||
|
use super::pubkeystore;
|
||||||
|
|
||||||
pub mod active_state;
|
pub mod active_state;
|
||||||
pub mod crystallized_state;
|
pub mod crystallized_state;
|
||||||
|
Loading…
Reference in New Issue
Block a user