Trait redact_crypto::key::ToPublicAsymmetricByteAlgorithm [−][src]
pub trait ToPublicAsymmetricByteAlgorithm {
type SecretKey;
type Nonce;
type PublicKey: StorableType;
fn to_byte_algorithm<'async_trait, F, Fut>(
self,
secret_key: Entry<Self::SecretKey>,
nonce: Option<Self::Nonce>,
f: F
) -> Pin<Box<dyn Future<Output = Result<ByteAlgorithm, CryptoError>> + Send + 'async_trait>>
where
F: FnOnce(Self::PublicKey) -> Fut + Send,
Fut: Future<Output = Result<Entry<Self::PublicKey>, CryptoError>> + Send,
F: 'async_trait,
Fut: 'async_trait,
Self: 'async_trait;
}