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

pub struct PublicKey(_);

A Secp256k1 public key, used for verification of signatures

Methods

impl PublicKey
[src]

[src]

Creates a new zeroed out public key

[src]

Determines whether a pubkey is valid

[src]

Obtains a raw pointer suitable for use with FFI functions

[src]

Creates a new public key from a secret key.

[src]

Creates a public key directly from a slice

[src]

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.

[src]

Serialize the key as a byte-encoded pair of values, in uncompressed form

[src]

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

[src]

Muliplies the pk self in place by the scalar other

[src]

Adds a second key to this one, returning the sum. Returns an error if the result would be the point at infinity, i.e. we are adding this point to its own negation

Trait Implementations

impl Copy for PublicKey
[src]

impl Clone for PublicKey
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for PublicKey
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for PublicKey
[src]

impl Debug for PublicKey
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for PublicKey
[src]

[src]

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

1.3.0
[src]

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

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for PublicKey

impl Sync for PublicKey