Trait btlib::crypto::Creds

source ·
pub trait Creds: CredsPriv + CredsPub + Send + Sync {
    // Provided methods
    fn issue_writecap(
        &self,
        issued_to: Principal,
        path_components: &mut dyn Iterator<Item = &str>,
        expires: Epoch
    ) -> Result<Writecap> { ... }
    fn pub_sign_kind(&self) -> Sign { ... }
    fn priv_sign_kind(&self) -> Sign { ... }
}
Expand description

Trait for types which contain both public and private credentials.

Provided Methods§

source

fn issue_writecap( &self, issued_to: Principal, path_components: &mut dyn Iterator<Item = &str>, expires: Epoch ) -> Result<Writecap>

source

fn pub_sign_kind(&self) -> Sign

source

fn priv_sign_kind(&self) -> Sign

Implementors§

source§

impl<C: ?Sized + CredsPriv + CredsPub + Send + Sync> Creds for C