[][src]Struct store::Keypair

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

Fields

sk: SecretKeypk: PublicKey

Methods

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
[src]

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
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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