deposit and deposit_parameters types added

This commit is contained in:
Grant Wuerker 2018-12-12 17:57:14 -06:00
parent 071e099203
commit c7f7bfaab4
2 changed files with 23 additions and 0 deletions

View 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
}

View 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
}