Type Definition snarkvm_console_account::address::Address

source ·
pub type Address<N> = Address<N>;
Expand description

See snarkvm/console/types/address for the Address type.

Trait Implementations§

source§

impl<N: Network> TryFrom<&ComputeKey<N>> for Address<N>

source§

fn try_from(compute_key: &ComputeKey<N>) -> Result<Self, Self::Error>

Derives the account address from an account compute key.

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl<N: Network> TryFrom<&PrivateKey<N>> for Address<N>

source§

fn try_from(private_key: &PrivateKey<N>) -> Result<Self, Self::Error>

Derives the account address from an account private key.

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl<N: Network> TryFrom<&ViewKey<N>> for Address<N>

source§

fn try_from(view_key: &ViewKey<N>) -> Result<Self, Self::Error>

Derives the account address from an account view key.

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl<N: Network> TryFrom<ComputeKey<N>> for Address<N>

source§

fn try_from(compute_key: ComputeKey<N>) -> Result<Self, Self::Error>

Derives the account address from an account compute key.

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl<N: Network> TryFrom<PrivateKey<N>> for Address<N>

source§

fn try_from(private_key: PrivateKey<N>) -> Result<Self, Self::Error>

Derives the account address from an account private key.

§

type Error = Error

The type returned in the event of a conversion error.
source§

impl<N: Network> TryFrom<ViewKey<N>> for Address<N>

source§

fn try_from(view_key: ViewKey<N>) -> Result<Self, Self::Error>

Derives the account address from an account view key.

§

type Error = Error

The type returned in the event of a conversion error.