[][src]Struct types::deposit_data::DepositData

pub struct DepositData {
    pub pubkey: PublicKeyBytes,
    pub withdrawal_credentials: Hash256,
    pub amount: u64,
    pub signature: SignatureBytes,

The data supplied by the user to the deposit contract.

Spec v0.8.0


pubkey: PublicKeyByteswithdrawal_credentials: Hash256amount: u64signature: SignatureBytes


impl DepositData[src]

pub fn create_signature(
    secret_key: &SecretKey,
    spec: &ChainSpec
) -> SignatureBytes

Generate the signature for a given DepositData details.

Spec v0.8.1

Trait Implementations

impl TestRandom for DepositData[src]

impl Clone for DepositData[src]

impl PartialEq<DepositData> for DepositData[src]

impl Debug for DepositData[src]

impl SignedRoot for DepositData[src]

impl TreeHash for DepositData[src]

impl Serialize for DepositData[src]

impl<'de> Deserialize<'de> for DepositData[src]

impl Decode for DepositData[src]

impl Encode for DepositData[src]

Auto Trait Implementations

impl Send for DepositData

impl Unpin for DepositData

impl Sync for DepositData

impl UnwindSafe for DepositData

impl RefUnwindSafe for DepositData

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized