[][src]Struct types::SecretKey

pub struct SecretKey(_);

A single BLS signature.

This struct is a wrapper upon a base type and provides helper functions (e.g., SSZ serialization).


impl SecretKey[src]

pub fn random() -> SecretKey[src]

pub fn from_raw(raw: SecretKey) -> SecretKey[src]

pub fn from_bytes(bytes: &[u8]) -> Result<SecretKey, DecodeError>[src]

Instantiate a SecretKey from existing bytes.

Note: this is not SSZ decoding.

pub fn as_raw(&self) -> &SecretKey[src]

Returns the underlying secret key.

Trait Implementations

impl Debug for SecretKey[src]

impl Clone for SecretKey[src]

impl Decode for SecretKey[src]

impl Eq for SecretKey[src]

impl TreeHash for SecretKey[src]

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

impl Encode for SecretKey[src]

impl Serialize for SecretKey[src]

impl PartialEq<SecretKey> for SecretKey[src]

impl TestRandom for SecretKey[src]

Auto Trait Implementations

impl Send for SecretKey

impl Unpin for SecretKey

impl Sync for SecretKey

impl UnwindSafe for SecretKey

impl RefUnwindSafe for SecretKey

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