pub fn ecdsa_sign(
id: <PassPointerAndReadCopy<KeyTypeId, 4> as RIType>::Inner,
pub_key: <PassPointerAndRead<&Public, 33> as RIType>::Inner,
msg: <PassFatPointerAndRead<&[u8]> as RIType>::Inner,
) -> <AllocateAndReturnByCodec<Option<Signature>> as RIType>::Inner
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.