Trait farcaster_core::crypto::RecoverSecret
source · pub trait RecoverSecret<PublicKey, SecretKey, Signature, EncryptedSignature> {
fn recover_secret_key(
&self,
encrypted_sig: EncryptedSignature,
encryption_key: &PublicKey,
sig: Signature
) -> SecretKey;
}Expand description
Recover the secret key through the complete encrypted/decrypted signature and public encryption key.
Required Methods§
sourcefn recover_secret_key(
&self,
encrypted_sig: EncryptedSignature,
encryption_key: &PublicKey,
sig: Signature
) -> SecretKey
fn recover_secret_key(
&self,
encrypted_sig: EncryptedSignature,
encryption_key: &PublicKey,
sig: Signature
) -> SecretKey
Recover the encryption key based on the encrypted signature, the encryption public key, and the regular (decrypted) signature.
Implementors§
impl RecoverSecret<PublicKey, SecretKey, Signature, EncryptedSignature> for KeyManager
Available on crate feature
experimental only.