Merge branch 'validator_induction' into genesis

This commit is contained in:
Paul Hauner 2018-10-22 05:51:55 +11:00
commit c9dcf7906d
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -0,0 +1,24 @@
use bls::{
Keypair,
PublicKey,
Signature,
};
use super::{
Address,
Hash256,
};
/// The information gathered from the PoW chain validator registration function.
#[derive(Debug, Clone, PartialEq)]
pub struct ValidatorRegistration {
pub pubkey: PublicKey,
pub withdrawal_shard: u16,
pub withdrawal_address: Address,
pub randao_commitment: Hash256,
pub proof_of_possession: Signature,
}
impl ValidatorRegistration {
pub fn random()
}