[][src]Struct store::Keypair

pub struct Keypair {
    pub sk: SecretKey,
    pub pk: PublicKey,


sk: SecretKeypk: PublicKey


impl Keypair[src]

pub fn random() -> Keypair[src]

Instantiate a Keypair using SecretKey::random().

pub fn identifier(&self) -> String[src]

Trait Implementations

impl Debug for Keypair[src]

impl Clone for Keypair[src]

impl Hash for Keypair[src]

fn hash<H>(&self, state: &mut H) where
    H: Hasher

Note: this is distinct from consensus serialization, it will produce a different hash.

This method uses the uncompressed bytes, which are much faster to obtain than the compressed bytes required for consensus serialization.

Use ssz::Encode to obtain the bytes required for consensus hashing.

impl Eq for Keypair[src]

impl Display for Keypair[src]

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

impl Serialize for Keypair[src]

impl PartialEq<Keypair> for Keypair[src]

Auto Trait Implementations

impl Send for Keypair

impl Unpin for Keypair

impl Sync for Keypair

impl UnwindSafe for Keypair

impl RefUnwindSafe for Keypair

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> ToString for T where
    T: Display + ?Sized

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