referrerpolicy=no-referrer-when-downgrade

Function sp_io::crypto::ecdsa_sign

source ·
pub fn ecdsa_sign(
    id: KeyTypeId,
    pub_key: &Public,
    msg: &[u8],
) -> Option<Signature>
Expand description

Sign the given msg with the ecdsa key that corresponds to the given public key and key type in the keystore.

Returns the signature.