Trait moonramp_encryption::KeyCustodian
source · [−]pub trait KeyCustodian {
type Secret;
type LockedKey;
type ActiveLockedKey;
fn gen_secret(&self) -> Result<[u8; 32]>;
fn lock(&self, secret: Self::Secret) -> Result<Self::ActiveLockedKey>;
fn unlock(&self, locked_key: Self::LockedKey) -> Result<Self::Secret>;
}