Struct secp256k1::key::PublicKey [] [src]

pub struct PublicKey(_);

A Secp256k1 public key, used for verification of signatures

Methods

impl PublicKey
[src]

Creates a new zeroed out public key

Determines whether a pubkey is valid

Obtains a raw pointer suitable for use with FFI functions

Creates a new public key from a secret key.

Creates a public key directly from a slice

Serialize the key as a byte-encoded pair of values. In compressed form the y-coordinate is represented by only a single bit, as x determines it up to one bit.

Adds the pk corresponding to other to the pk self in place

Adds another point on the curve in place

Multiplies this point by secret scalar

Trait Implementations

impl Copy for PublicKey
[src]

impl Clone for PublicKey
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for PublicKey
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PublicKey
[src]

impl Debug for PublicKey
[src]

Formats the value using the given formatter.

impl Hash for PublicKey
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl From<PublicKey> for PublicKey
[src]

Creates a new public key from a FFI public key

Performs the conversion.