k256

Type Alias PublicKey

Source
pub type PublicKey = PublicKey<Secp256k1>;
Expand description

secp256k1 (K-256) public key.

Aliased Type§

struct PublicKey { /* private fields */ }

Trait Implementations§

Source§

impl TryFrom<&AffinePoint> for PublicKey

Source§

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

Source§

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

Source§

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

Source§

type Error = Error

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

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

Performs the conversion.