Struct secp256k1_test::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]

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

[src]

Muliplies the pk self in place by the scalar other

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.

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 Decodable for PublicKey
[src]

[src]

Deserialize a value using a Decoder.

impl From<PublicKey> for PublicKey
[src]

Creates a new public key from a FFI public key

[src]

Performs the conversion.

impl Encodable for PublicKey
[src]

[src]

Serialize a value using an Encoder.

impl<'de> Deserialize<'de> for PublicKey
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for PublicKey
[src]

[src]

Serialize this value into the given Serde serializer. Read more