Type Alias k256::PublicKey

source ·
pub type PublicKey = PublicKey<Secp256k1>;
Available on crate feature arithmetic only.
Expand description

secp256k1 (K-256) public key.

Aliased Type§

struct PublicKey { /* private fields */ }

Trait Implementations§

source§

impl From<&VerifyingKey> for PublicKey

Available on crate feature schnorr only.
source§

fn from(vk: &VerifyingKey) -> PublicKey

Converts to this type from the input type.
source§

impl From<VerifyingKey> for PublicKey

Available on crate feature schnorr only.
source§

fn from(vk: VerifyingKey) -> PublicKey

Converts to this type from the input type.
source§

impl TryFrom<&AffinePoint> for PublicKey

§

type Error = Error

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

fn try_from(affine_point: &AffinePoint) -> Result<PublicKey>

Performs the conversion.
source§

impl TryFrom<&ProjectivePoint> for PublicKey

§

type Error = Error

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

fn try_from(point: &ProjectivePoint) -> Result<PublicKey>

Performs the conversion.
source§

impl TryFrom<AffinePoint> for PublicKey

§

type Error = Error

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

fn try_from(affine_point: AffinePoint) -> Result<PublicKey>

Performs the conversion.
source§

impl TryFrom<ProjectivePoint> for PublicKey

§

type Error = Error

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

fn try_from(point: ProjectivePoint) -> Result<PublicKey>

Performs the conversion.