Trait fuel_crypto::Keystore
source · pub trait Keystore {
type Error: From<Error>;
type KeyId;
// Required method
fn secret(
&self,
id: &Self::KeyId
) -> Result<Option<Borrown<'_, SecretKey>>, Self::Error>;
// Provided method
fn public(
&self,
id: &Self::KeyId
) -> Result<Option<Borrown<'_, PublicKey>>, Self::Error> { ... }
}
Expand description
Keys container