Trait btlib::crypto::CredsPub

source ·
pub trait CredsPub: Verifier + Encrypter + Principaled {
    // Required methods
    fn public_sign(&self) -> &AsymKey<Public, Sign>;
    fn concrete_pub(&self) -> ConcretePub;

    // Provided method
    fn sign_kind(&self) -> Sign { ... }
}
Expand description

Trait for types which can be used as public credentials.

Required Methods§

source

fn public_sign(&self) -> &AsymKey<Public, Sign>

Returns a reference to the public signing key which can be used to verify signatures.

source

fn concrete_pub(&self) -> ConcretePub

Provided Methods§

source

fn sign_kind(&self) -> Sign

Implementations on Foreign Types§

source§

impl<T: ?Sized + CredsPub> CredsPub for &T

source§

impl<T: ?Sized + CredsPub> CredsPub for Arc<T>

Implementors§