mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-07 19:41:20 +00:00
Add missed file
This commit is contained in:
parent
12b5d7434c
commit
7eac75fcf6
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