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.