Trait btlib::crypto::CredsPriv

source ·
pub trait CredsPriv: Decrypter + Signer {
    // Required method
    fn writecap(&self) -> Option<&Writecap>;

    // Provided methods
    fn sign_kind(&self) -> Sign { ... }
    fn bind_path(&self) -> Result<BlockPath> { ... }
}
Expand description

Trait for types which contain private credentials.

Required Methods§

source

fn writecap(&self) -> Option<&Writecap>

Returns a reference to the writecap associated with these credentials, if one has been issued.

Provided Methods§

source

fn sign_kind(&self) -> Sign

source

fn bind_path(&self) -> Result<BlockPath>

Returns the path these credentials are authorized to bind to according, as specified by their Writecap. If these creds haven’t been issued a Writecap, then an Err variant containing BlockError::MissingWritecap is returned.

Implementations on Foreign Types§

source§

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

source§

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

Implementors§