Struct btlib::crypto::ConcretePub
source · pub struct ConcretePub {
pub sign: AsymKeyPub<Sign>,
pub enc: AsymKeyPub<Encrypt>,
}
Fields§
§sign: AsymKeyPub<Sign>
§enc: AsymKeyPub<Encrypt>
Trait Implementations§
source§impl Clone for ConcretePub
impl Clone for ConcretePub
source§fn clone(&self) -> ConcretePub
fn clone(&self) -> ConcretePub
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 CredsPub for ConcretePub
impl CredsPub for ConcretePub
source§fn public_sign(&self) -> &AsymKey<Public, Sign>
fn public_sign(&self) -> &AsymKey<Public, Sign>
Returns a reference to the public signing key which can be used to verify signatures.
fn concrete_pub(&self) -> ConcretePub
fn sign_kind(&self) -> Sign
source§impl Debug for ConcretePub
impl Debug for ConcretePub
source§impl<'de> Deserialize<'de> for ConcretePub
impl<'de> Deserialize<'de> for ConcretePub
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ConcretePub> for ConcretePub
impl PartialEq<ConcretePub> for ConcretePub
source§impl Principaled for ConcretePub
impl Principaled for ConcretePub
source§impl Serialize for ConcretePub
impl Serialize for ConcretePub
Auto Trait Implementations§
impl RefUnwindSafe for ConcretePub
impl Send for ConcretePub
impl Sync for ConcretePub
impl Unpin for ConcretePub
impl UnwindSafe for ConcretePub
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
source§impl<T> EncrypterExt for Twhere
T: Encrypter + ?Sized,
impl<T> EncrypterExt for Twhere T: Encrypter + ?Sized,
source§fn ser_encrypt<T: Serialize>(&self, value: &T) -> Result<Ciphertext<T>>
fn ser_encrypt<T: Serialize>(&self, value: &T) -> Result<Ciphertext<T>>
Serializes the given value into a new vector, then encrypts it and returns the resulting
ciphertext.