Struct bc_components::PublicKeyBase
source · pub struct PublicKeyBase { /* 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 agreement key used for X25519 key agreement.
Implementations§
source§impl PublicKeyBase
impl PublicKeyBase
sourcepub fn new(
signing_public_key: SigningPublicKey,
agreement_public_key: AgreementPublicKey
) -> Self
pub fn new( signing_public_key: SigningPublicKey, agreement_public_key: AgreementPublicKey ) -> Self
Restores a PublicKeyBase
from a SigningPublicKey
and an AgreementPublicKey
.
sourcepub fn signing_public_key(&self) -> &SigningPublicKey
pub fn signing_public_key(&self) -> &SigningPublicKey
Returns the SigningPublicKey
of this PublicKeyBase
.
sourcepub fn agreement_public_key(&self) -> &AgreementPublicKey
pub fn agreement_public_key(&self) -> &AgreementPublicKey
Returns the AgreementPublicKey
of this PublicKeyBase
.
Trait Implementations§
source§impl CBORDecodable for PublicKeyBase
impl CBORDecodable for PublicKeyBase
source§impl CBOREncodable for PublicKeyBase
impl CBOREncodable for PublicKeyBase
source§impl CBORTagged for PublicKeyBase
impl CBORTagged for PublicKeyBase
source§impl CBORTaggedDecodable for PublicKeyBase
impl CBORTaggedDecodable for PublicKeyBase
source§fn from_untagged_cbor(untagged_cbor: &CBOR) -> Result<Self, Error>
fn from_untagged_cbor(untagged_cbor: &CBOR) -> Result<Self, Error>
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 PublicKeyBase
impl CBORTaggedEncodable for PublicKeyBase
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 PublicKeyBase
impl Clone for PublicKeyBase
source§fn clone(&self) -> PublicKeyBase
fn clone(&self) -> PublicKeyBase
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 PublicKeyBase
impl Debug for PublicKeyBase
source§impl PartialEq<PublicKeyBase> for PublicKeyBase
impl PartialEq<PublicKeyBase> for PublicKeyBase
source§fn eq(&self, other: &PublicKeyBase) -> bool
fn eq(&self, other: &PublicKeyBase) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl URDecodable for PublicKeyBase
impl URDecodable for PublicKeyBase
source§impl UREncodable for PublicKeyBase
impl UREncodable for PublicKeyBase
impl Eq for PublicKeyBase
impl StructuralEq for PublicKeyBase
impl StructuralPartialEq for PublicKeyBase
impl URCodable for PublicKeyBase
Auto Trait Implementations§
impl RefUnwindSafe for PublicKeyBase
impl Send for PublicKeyBase
impl Sync for PublicKeyBase
impl Unpin for PublicKeyBase
impl UnwindSafe for PublicKeyBase
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