pub trait Translator<P, Q, E>where
P: SimplicityKey,
Q: SimplicityKey,{
// Required methods
fn pk(&mut self, pk: &P) -> Result<Q, E>;
fn sha256(&mut self, sha256: &P::Sha256) -> Result<Q::Sha256, E>;
}Expand description
Object which can translate one key type to another, including all associated hashes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".