Struct wedpr_l_crypto_signature_secp256k1::WedprSecp256k1Recover[][src]

pub struct WedprSecp256k1Recover {}

Implements FISCO-BCOS-compatible Secp256k1 as a Signature instance.


impl WedprSecp256k1Recover[src]

pub fn recover_public_key<T: ?Sized + AsRef<[u8]>>(
    msg_hash: &T,
    signature: &T
) -> Result<Vec<u8>, WedprError>

Recovers public key from message hash and signature.

pub fn derive_public_key<T: ?Sized + AsRef<[u8]>>(
    private_key: &T
) -> Result<Vec<u8>, WedprError>

Derives public key from private key.

Trait Implementations

impl Clone for WedprSecp256k1Recover[src]

impl Copy for WedprSecp256k1Recover[src]

impl Debug for WedprSecp256k1Recover[src]

impl Default for WedprSecp256k1Recover[src]

impl Signature for WedprSecp256k1Recover[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.