mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
deposit and deposit_parameters types added
This commit is contained in:
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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user