Merge branch 'validator_induction' into genesis
This commit is contained in:
commit
c9dcf7906d
24
beacon_chain/types/src/validator_registration.rs
Normal file
24
beacon_chain/types/src/validator_registration.rs
Normal 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()
|
||||
}
|
Loading…
Reference in New Issue
Block a user