pub struct PublicKey { /* private fields */ }
Expand description
User facing interface to work with a public key.
Implementations§
source§impl PublicKey
impl PublicKey
pub fn new( primary_key: PublicKey, details: KeyDetails, public_subkeys: Vec<PublicSubkey> ) -> Self
pub fn sign<F>( self, sec_key: &impl SecretKeyTrait, key_pw: F ) -> Result<SignedPublicKey>
Trait Implementations§
source§impl PartialEq for PublicKey
impl PartialEq for PublicKey
source§impl PublicKeyTrait for PublicKey
impl PublicKeyTrait for PublicKey
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.impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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