pub trait ToSecretAsymmetricByteAlgorithm {
type SecretKey: StorableType;
type Nonce;
type PublicKey;
fn to_byte_algorithm<'async_trait, F, Fut>(
self,
public_key: Option<Entry<Self::PublicKey>>,
nonce: Option<Self::Nonce>,
f: F
) -> Pin<Box<dyn Future<Output = Result<ByteAlgorithm, CryptoError>> + Send + 'async_trait>>
where
F: FnOnce(Self::SecretKey) -> Fut + Send,
Fut: Future<Output = Result<Entry<Self::SecretKey>, CryptoError>> + Send,
F: 'async_trait,
Fut: 'async_trait,
Self: 'async_trait;
}