Skip to main content

HostDeriveInput

Trait HostDeriveInput 

Source
pub trait HostDeriveInput: Send {
    // Required methods
    fn can_derive_bits(&mut self, self_: Resource<DeriveInput>) -> Result<bool>;
    fn can_derive_key(&mut self, self_: Resource<DeriveInput>) -> Result<bool>;
}

Required Methods§

Source

fn can_derive_bits(&mut self, self_: Resource<DeriveInput>) -> Result<bool>

Whether derive-bits (and minting extractable keys) is permitted. See derive-options.can-derive-bits.

Source

fn can_derive_key(&mut self, self_: Resource<DeriveInput>) -> Result<bool>

Whether the target interfaces’ derive-key is permitted. See derive-options.can-derive-key.

Implementations on Foreign Types§

Source§

impl<_T: HostDeriveInput + ?Sized + Send> HostDeriveInput for &mut _T

Source§

fn can_derive_bits(&mut self, self_: Resource<DeriveInput>) -> Result<bool>

Whether derive-bits (and minting extractable keys) is permitted. See derive-options.can-derive-bits.

Source§

fn can_derive_key(&mut self, self_: Resource<DeriveInput>) -> Result<bool>

Whether the target interfaces’ derive-key is permitted. See derive-options.can-derive-key.

Implementors§