deposit and deposit_parameters types added
This commit is contained in:
parent
071e099203
commit
c7f7bfaab4
14
beacon_chain/types/src/deposit.rs
Normal file
14
beacon_chain/types/src/deposit.rs
Normal file
@ -0,0 +1,14 @@
|
||||
use super::deposit_parameters::DepositParameters;
|
||||
use super::{Hash256};
|
||||
|
||||
pub struct Deposit {
|
||||
pub merkle_branch: Hash256,
|
||||
pub merkle_tree_index: u64,
|
||||
pub deposit_data: DepositDate
|
||||
}
|
||||
|
||||
pub struct DepositDate {
|
||||
pub deposit_parameters: DepositParameters,
|
||||
pub value: u64,
|
||||
pub timestamp: u64
|
||||
}
|
9
beacon_chain/types/src/deposit_parameters.rs
Normal file
9
beacon_chain/types/src/deposit_parameters.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use super::bls::{Keypair, PublicKey, AggregateSignature};
|
||||
use super::{Hash256};
|
||||
|
||||
pub struct DepositParameters {
|
||||
pub pubkey: PublicKey,
|
||||
pub proof_of_possession: AggregateSignature,
|
||||
pub withdrawal_credentials: Hash256,
|
||||
pub randao_commitment: Hash256
|
||||
}
|
Loading…
Reference in New Issue
Block a user