pub struct PublicKey(_);
Expand description

Structure repesenting a PublicKey

Implementations

Create a public key from its internal parts

The public keys are generated from a bijective function that takes a secret keys domain. If keys are generated directly from curve points, there is no guarantee a secret key exists - in fact, the discrete logarithm property will guarantee the secret key cannot be extracted from this public key.

If you opt to generate the keys manually, be sure you have its secret counterpart - otherwise this key will be of no use.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Formats the value using the given formatter.

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

This method tests for !=.

The type returned in the event of a conversion error.

Serialize Self into a [[u8; N]].

Deserialize a [&[u8; N]] into Self, it might be fail.

The size of

Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserialize a slice of u8 into Self

Deserialize the type reading the bytes from a reader. The bytes read are removed from the reader. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Parse a string slice as bytes hex representation and returns `

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.