pub struct PublicKeys { /* private fields */ }Expand description
Holds information used to communicate cryptographically with a remote entity.
Includes the entity’s public signing key for verifying signatures, and the entity’s public encapsulation key used encrypting messages.
Implementations§
Source§impl PublicKeys
impl PublicKeys
Sourcepub fn new(
signing_public_key: SigningPublicKey,
encapsulation_public_key: EncapsulationPublicKey,
) -> Self
pub fn new( signing_public_key: SigningPublicKey, encapsulation_public_key: EncapsulationPublicKey, ) -> Self
Restores a PublicKeys from a SigningPublicKey and an EncapsulationPublicKey.
Sourcepub fn signing_public_key(&self) -> &SigningPublicKey
pub fn signing_public_key(&self) -> &SigningPublicKey
Returns the SigningPublicKey of this PublicKeys.
Sourcepub fn enapsulation_public_key(&self) -> &EncapsulationPublicKey
pub fn enapsulation_public_key(&self) -> &EncapsulationPublicKey
Returns the EncapsulationPublicKey of this PublicKeys.
Trait Implementations§
Source§impl AsRef<EncapsulationPublicKey> for PublicKeys
impl AsRef<EncapsulationPublicKey> for PublicKeys
Source§fn as_ref(&self) -> &EncapsulationPublicKey
fn as_ref(&self) -> &EncapsulationPublicKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<PublicKeys> for PublicKeys
impl AsRef<PublicKeys> for PublicKeys
Source§fn as_ref(&self) -> &PublicKeys
fn as_ref(&self) -> &PublicKeys
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<SigningPublicKey> for PublicKeys
impl AsRef<SigningPublicKey> for PublicKeys
Source§fn as_ref(&self) -> &SigningPublicKey
fn as_ref(&self) -> &SigningPublicKey
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl CBORTagged for PublicKeys
impl CBORTagged for PublicKeys
The CBOR tags assocated with this type. If more than one tag is present,
they are considered equivalent for reading, but only the first one is
used for writing.
Source§impl CBORTaggedDecodable for PublicKeys
impl CBORTaggedDecodable for PublicKeys
Source§fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
fn from_untagged_cbor(untagged_cbor: CBOR) -> Result<Self>
Creates an instance of this type by decoding it from untagged CBOR.
Source§fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
Creates an instance of this type by decoding it from tagged CBOR.
Source§impl CBORTaggedEncodable for PublicKeys
impl CBORTaggedEncodable for PublicKeys
Source§fn untagged_cbor(&self) -> CBOR
fn untagged_cbor(&self) -> CBOR
Returns the untagged CBOR encoding of this instance.
Source§fn tagged_cbor(&self) -> CBOR
fn tagged_cbor(&self) -> CBOR
Returns the tagged CBOR encoding of this instance.
Source§impl Clone for PublicKeys
impl Clone for PublicKeys
Source§fn clone(&self) -> PublicKeys
fn clone(&self) -> PublicKeys
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PublicKeys
impl Debug for PublicKeys
Source§impl Display for PublicKeys
impl Display for PublicKeys
Source§impl Encrypter for PublicKeys
impl Encrypter for PublicKeys
fn encapsulation_public_key(&self) -> EncapsulationPublicKey
Source§impl From<&PublicKeys> for XID
impl From<&PublicKeys> for XID
Source§fn from(key: &PublicKeys) -> Self
fn from(key: &PublicKeys) -> Self
Converts to this type from the input type.
Source§impl From<PublicKeys> for CBOR
impl From<PublicKeys> for CBOR
Source§fn from(value: PublicKeys) -> Self
fn from(value: PublicKeys) -> Self
Converts to this type from the input type.
Source§impl Hash for PublicKeys
impl Hash for PublicKeys
Source§impl PartialEq for PublicKeys
impl PartialEq for PublicKeys
Source§impl PublicKeysProvider for PublicKeys
impl PublicKeysProvider for PublicKeys
fn public_keys(&self) -> PublicKeys
Source§impl ReferenceProvider for PublicKeys
impl ReferenceProvider for PublicKeys
fn reference(&self) -> Reference
Source§fn ref_data_short(&self) -> [u8; 4]
fn ref_data_short(&self) -> [u8; 4]
The first four bytes of the reference
Source§fn ref_hex_short(&self) -> String
fn ref_hex_short(&self) -> String
The first four bytes of the reference as a hexadecimal string.
Source§impl TryFrom<CBOR> for PublicKeys
impl TryFrom<CBOR> for PublicKeys
Source§impl Verifier for PublicKeys
impl Verifier for PublicKeys
impl Eq for PublicKeys
impl StructuralPartialEq for PublicKeys
Auto Trait Implementations§
impl Freeze for PublicKeys
impl RefUnwindSafe for PublicKeys
impl Send for PublicKeys
impl Sync for PublicKeys
impl Unpin for PublicKeys
impl UnwindSafe for PublicKeys
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more