From 7eac75fcf6af20ae5920da9abefa98d99dce1c16 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 22 Oct 2018 05:51:31 +1100 Subject: [PATCH] Add missed file --- .../types/src/validator_registration.rs | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 beacon_chain/types/src/validator_registration.rs diff --git a/beacon_chain/types/src/validator_registration.rs b/beacon_chain/types/src/validator_registration.rs new file mode 100644 index 000000000..1ebb90eec --- /dev/null +++ b/beacon_chain/types/src/validator_registration.rs @@ -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() +}