[][src]Struct wedpr_l_crypto_signature_sm2::WeDPRSm2p256v1

pub struct WeDPRSm2p256v1 {}

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

Implementations

impl WeDPRSm2p256v1[src]

pub fn sign_fast<T: ?Sized + AsRef<[u8]>>(
    &self,
    private_key: &T,
    public_key: &T,
    msg_hash: &T
) -> Result<Vec<u8>, WedprError>
[src]

Signes a message hash faster with both the private and public keys.

Trait Implementations

impl Clone for WeDPRSm2p256v1[src]

impl Debug for WeDPRSm2p256v1[src]

impl Default for WeDPRSm2p256v1[src]

impl Signature for WeDPRSm2p256v1[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.