pub trait ProofOfPossessionGenerator: Pairwhere
Self::Public: CryptoType,{
// Required method
fn generate_proof_of_possession(&mut self) -> Self::Signature;
}
Expand description
Pair which is able to generate proof of possession.
This is implemented in different trait to provide default behavior.
Required Methods§
Sourcefn generate_proof_of_possession(&mut self) -> Self::Signature
fn generate_proof_of_possession(&mut self) -> Self::Signature
Generate proof of possession.
The proof of possession generator is supposed to produce a “signature” with unique hash context that should never be used in other signatures. This proves that the secret key is known to the prover. While prevent malicious actors to trick an honest party to sign an unpossessed public key resulting in a rogue key attack (See: Section 4.3 of
- Ristenpart, T., & Yilek, S. (2007). The power of proofs-of-possession: Securing multiparty signatures against rogue-key attacks. In , Annual {{International Conference}} on the {{Theory}} and {{Applications}} of {{Cryptographic Techniques} (pp. 228–245). : Springer).
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.