Type Definition k256::PublicKey

source ·
pub type PublicKey = PublicKey<Secp256k1>;
Expand description

secp256k1 (K-256) public key.

Trait Implementations§

source§

impl From<&VerifyingKey> for PublicKey

source§

fn from(verifying_key: &VerifyingKey) -> PublicKey

Converts to this type from the input type.
source§

impl From<VerifyingKey> for PublicKey

source§

fn from(verifying_key: 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.