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

source

pub fn sign_with_hasher<H>(&self, message: &[u8]) -> Signature
where H: Hasher, H::Out: Into<[u8; 32]>,

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.

source

pub fn verify_with_hasher<H>( sig: &Signature, message: &[u8], public: &Public, ) -> bool
where H: Hasher, H::Out: Into<[u8; 32]>,

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

Trait Implementations§

source§

impl CryptoType for Pair

§

type Pair = Pair<Pair, Pair<TinyBLS<Bls12<Config>, Config>>, PUBLIC_KEY_LEN, SIGNATURE_LEN, EcdsaBls377Tag>

The pair key type of this crypto.