Translator

Trait Translator 

Source
pub trait Translator<P, Q, E>{
    // 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§

Source

fn pk(&mut self, pk: &P) -> Result<Q, E>

Translates public keys PQ.

Source

fn sha256(&mut self, sha256: &P::Sha256) -> Result<Q::Sha256, E>

Translates SHA 256 hashes P::Sha256Q::Sha256.

Implementors§