pub trait SparkSignerEcies {
// Required methods
fn encrypt_secret_key_with_ecies<T, U>(
&self,
receiver_public_key: T,
pubkey_for_sk_to_encrypt: U,
) -> Result<Vec<u8>, SparkSdkError>
where T: AsRef<[u8]>,
U: AsRef<[u8]>;
fn decrypt_secret_key_with_ecies<T>(
&self,
ciphertext: T,
) -> Result<Vec<u8>, SparkSdkError>
where T: AsRef<[u8]>;
}Required Methods§
Sourcefn encrypt_secret_key_with_ecies<T, U>(
&self,
receiver_public_key: T,
pubkey_for_sk_to_encrypt: U,
) -> Result<Vec<u8>, SparkSdkError>
fn encrypt_secret_key_with_ecies<T, U>( &self, receiver_public_key: T, pubkey_for_sk_to_encrypt: U, ) -> Result<Vec<u8>, SparkSdkError>
Sourcefn decrypt_secret_key_with_ecies<T>(
&self,
ciphertext: T,
) -> Result<Vec<u8>, SparkSdkError>
fn decrypt_secret_key_with_ecies<T>( &self, ciphertext: T, ) -> Result<Vec<u8>, SparkSdkError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.