Add missed file

This commit is contained in:
Paul Hauner 2018-10-22 05:51:31 +11:00
parent 12b5d7434c
commit 7eac75fcf6
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()
}