[][src]Struct snarkos_objects::account::account_view_key::AccountViewKey

pub struct AccountViewKey<C: DPCComponents> {
    pub decryption_key: <C::AccountEncryption as EncryptionScheme>::PrivateKey,
}

Fields

decryption_key: <C::AccountEncryption as EncryptionScheme>::PrivateKey

Implementations

impl<C: DPCComponents> AccountViewKey<C>[src]

pub fn from_private_key(
    signature_parameters: &C::AccountSignature,
    commitment_parameters: &C::AccountCommitment,
    private_key: &AccountPrivateKey<C>
) -> Result<Self, AccountError>
[src]

Creates a new account view key from an account private key.

Trait Implementations

impl<C: DPCComponents> Clone for AccountViewKey<C> where
    C: DPCComponents
[src]

impl<C: DPCComponents> Debug for AccountViewKey<C>[src]

impl<C: DPCComponents> Default for AccountViewKey<C> where
    C: DPCComponents
[src]

impl<C: DPCComponents> Display for AccountViewKey<C>[src]

impl<C: DPCComponents> Eq for AccountViewKey<C> where
    C: DPCComponents
[src]

impl<C: DPCComponents> FromBytes for AccountViewKey<C>[src]

fn read<R: Read>(reader: R) -> IoResult<Self>[src]

Reads in an account view key buffer.

impl<C: DPCComponents> FromStr for AccountViewKey<C>[src]

type Err = AccountError

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>[src]

Reads in an account view key string.

impl<C: DPCComponents> PartialEq<AccountViewKey<C>> for AccountViewKey<C> where
    C: DPCComponents
[src]

impl<C: DPCComponents> ToBytes for AccountViewKey<C>[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,