Type Alias sp_core::paired_crypto::ecdsa_bls377::Pair
source · pub type Pair = Pair<Pair, Pair, PUBLIC_KEY_LEN, SIGNATURE_LEN, EcdsaBls377Tag>;
Expand description
(ECDSA,BLS12-377) key-pair pair.
Aliased Type§
struct Pair { /* private fields */ }
Implementations§
source§impl Pair
impl Pair
sourcepub fn sign_with_hasher<H>(&self, message: &[u8]) -> Signature
pub fn sign_with_hasher<H>(&self, message: &[u8]) -> Signature
Hashes the message
with the specified Hasher
before signing with the ECDSA secret
component.
The hasher does not affect the BLS12-377 component. This generates BLS12-377 Signature according to IETF standard.
sourcepub fn verify_with_hasher<H>(
sig: &Signature,
message: &[u8],
public: &Public,
) -> bool
pub fn verify_with_hasher<H>( sig: &Signature, message: &[u8], public: &Public, ) -> bool
Hashes the message
with the specified Hasher
before verifying with the ECDSA
public component.
The hasher does not affect the the BLS12-377 component. This verifies whether the BLS12-377 signature was hashed and signed according to IETF standard