pub struct NativeEcdsaSigningEngine;Expand description
ECDSA signing engine based on the fast secp256k1 crate.
The crate uses bindings to the Bitcoin secp256k1 C library.
Trait Implementations§
Source§impl Clone for NativeEcdsaSigningEngine
impl Clone for NativeEcdsaSigningEngine
Source§fn clone(&self) -> NativeEcdsaSigningEngine
fn clone(&self) -> NativeEcdsaSigningEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeEcdsaSigningEngine
impl Debug for NativeEcdsaSigningEngine
Source§impl EcdsaEngine for NativeEcdsaSigningEngine
impl EcdsaEngine for NativeEcdsaSigningEngine
Source§fn sign_hash(
hash: &Hash,
chain_keypair: &ChainKeypair,
) -> Result<([u8; 64], u8), CryptoError>
fn sign_hash( hash: &Hash, chain_keypair: &ChainKeypair, ) -> Result<([u8; 64], u8), CryptoError>
Sign the given
hash with the private key from the chain_keypair.Source§fn verify_hash(
signature: &([u8; 64], u8),
hash: &Hash,
public_key: &PublicKey,
) -> Result<bool, CryptoError>
fn verify_hash( signature: &([u8; 64], u8), hash: &Hash, public_key: &PublicKey, ) -> Result<bool, CryptoError>
Verify the given
signature against the hash and the public_key.Source§fn recover_from_hash(
signature: &([u8; 64], u8),
hash: &Hash,
) -> Result<PublicKey, CryptoError>
fn recover_from_hash( signature: &([u8; 64], u8), hash: &Hash, ) -> Result<PublicKey, CryptoError>
Recover the signer public key from the
signature and the hash.Source§impl PartialEq for NativeEcdsaSigningEngine
impl PartialEq for NativeEcdsaSigningEngine
impl Copy for NativeEcdsaSigningEngine
impl Eq for NativeEcdsaSigningEngine
impl StructuralPartialEq for NativeEcdsaSigningEngine
Auto Trait Implementations§
impl Freeze for NativeEcdsaSigningEngine
impl RefUnwindSafe for NativeEcdsaSigningEngine
impl Send for NativeEcdsaSigningEngine
impl Sync for NativeEcdsaSigningEngine
impl Unpin for NativeEcdsaSigningEngine
impl UnwindSafe for NativeEcdsaSigningEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more