[−][src]Trait cylinder::Context
A context for creating signers and verifiers
Required methods
fn new_signer(&self, key: PrivateKey) -> Box<dyn Signer>
Creates a new signer with the given private key
fn new_verifier(&self) -> Box<dyn Verifier>
Creates a new signature verifier
fn new_random_private_key(&self) -> PrivateKey
Generates a new random private key
fn get_public_key(
&self,
private_key: &PrivateKey
) -> Result<PublicKey, ContextError>
&self,
private_key: &PrivateKey
) -> Result<PublicKey, ContextError>
Computes the public key that corresponds to the given private key
Implementors
impl Context for HashContext
[src]
fn new_signer(&self, _key: PrivateKey) -> Box<dyn Signer>
[src]
fn new_verifier(&self) -> Box<dyn Verifier>
[src]
fn new_random_private_key(&self) -> PrivateKey
[src]
fn get_public_key(
&self,
_private_key: &PrivateKey
) -> Result<PublicKey, ContextError>
[src]
&self,
_private_key: &PrivateKey
) -> Result<PublicKey, ContextError>
impl Context for Secp256k1Context
[src]
fn new_signer(&self, key: PrivateKey) -> Box<dyn Signer>
[src]
fn new_verifier(&self) -> Box<dyn Verifier>
[src]
fn new_random_private_key(&self) -> PrivateKey
[src]
fn get_public_key(
&self,
private_key: &PrivateKey
) -> Result<PublicKey, ContextError>
[src]
&self,
private_key: &PrivateKey
) -> Result<PublicKey, ContextError>