pub struct K256EcdsaSigningEngine;Expand description
ECDSA signing engine based on the pure Rust k256 crate.
This is usually slower than NativeEcdsaSigningEngine, but pure Rust-based.
Trait Implementations§
Source§impl Clone for K256EcdsaSigningEngine
impl Clone for K256EcdsaSigningEngine
Source§fn clone(&self) -> K256EcdsaSigningEngine
fn clone(&self) -> K256EcdsaSigningEngine
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 K256EcdsaSigningEngine
impl Debug for K256EcdsaSigningEngine
Source§impl EcdsaEngine for K256EcdsaSigningEngine
impl EcdsaEngine for K256EcdsaSigningEngine
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 K256EcdsaSigningEngine
impl PartialEq for K256EcdsaSigningEngine
impl Copy for K256EcdsaSigningEngine
impl Eq for K256EcdsaSigningEngine
impl StructuralPartialEq for K256EcdsaSigningEngine
Auto Trait Implementations§
impl Freeze for K256EcdsaSigningEngine
impl RefUnwindSafe for K256EcdsaSigningEngine
impl Send for K256EcdsaSigningEngine
impl Sync for K256EcdsaSigningEngine
impl Unpin for K256EcdsaSigningEngine
impl UnwindSafe for K256EcdsaSigningEngine
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