Struct pgp::composed::signed_key::SignedPublicSubKey
source · pub struct SignedPublicSubKey {
pub key: PublicSubkey,
pub signatures: Vec<Signature>,
}
Expand description
Represents a Public PGP SubKey.
Fields§
§key: PublicSubkey
§signatures: Vec<Signature>
Implementations§
source§impl SignedPublicSubKey
impl SignedPublicSubKey
pub fn new(key: PublicSubkey, signatures: Vec<Signature>) -> Self
pub fn verify(&self, key: &impl PublicKeyTrait) -> Result<()>
pub fn as_unsigned(&self) -> PublicSubkey
Trait Implementations§
source§impl Clone for SignedPublicSubKey
impl Clone for SignedPublicSubKey
source§fn clone(&self) -> SignedPublicSubKey
fn clone(&self) -> SignedPublicSubKey
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 SignedPublicSubKey
impl Debug for SignedPublicSubKey
source§impl From<SignedSecretSubKey> for SignedPublicSubKey
impl From<SignedSecretSubKey> for SignedPublicSubKey
source§fn from(value: SignedSecretSubKey) -> Self
fn from(value: SignedSecretSubKey) -> Self
Converts to this type from the input type.
source§impl KeyTrait for SignedPublicSubKey
impl KeyTrait for SignedPublicSubKey
source§impl PartialEq for SignedPublicSubKey
impl PartialEq for SignedPublicSubKey
source§fn eq(&self, other: &SignedPublicSubKey) -> bool
fn eq(&self, other: &SignedPublicSubKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PublicKeyTrait for SignedPublicSubKey
impl PublicKeyTrait for SignedPublicSubKey
source§fn verify_signature(
&self,
hash: HashAlgorithm,
data: &[u8],
sig: &[Mpi]
) -> Result<()>
fn verify_signature( &self, hash: HashAlgorithm, data: &[u8], sig: &[Mpi] ) -> Result<()>
Verify a signed message.
Data will be hashed using
hash
, before verifying.source§impl Serialize for SignedPublicSubKey
impl Serialize for SignedPublicSubKey
impl Eq for SignedPublicSubKey
impl StructuralPartialEq for SignedPublicSubKey
Auto Trait Implementations§
impl RefUnwindSafe for SignedPublicSubKey
impl Send for SignedPublicSubKey
impl Sync for SignedPublicSubKey
impl Unpin for SignedPublicSubKey
impl UnwindSafe for SignedPublicSubKey
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