Struct recrypt::api::PublicKey[]

pub struct PublicKey { /* fields omitted */ }

Methods

impl PublicKey

ENCODED_SIZE_BYTES: usize = <Fp256>::ENCODED_SIZE_BYTES * 2

Augment the PublicKey so that messages encrypted to that key cannot be decrypted by this PublicKey's PrivateKey. This can be useful if you want to force delegation via transform. See TransformKey.augment. Note that by augmenting a PublicKey you're committing to augmenting all TransformKeys that are created from this keypair. Otherwise the transformed data will not be able to be correctly decrypted.

Trait Implementations

impl PartialEq for PublicKey

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

impl Clone for PublicKey

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PublicKey

impl Debug for PublicKey

Formats the value using the given formatter. Read more

impl Hashable for PublicKey

Convert self to a stable byte representation.

Auto Trait Implementations

impl Send for PublicKey

impl Sync for PublicKey