pub fn ed25519_sign(
    id: <PassPointerAndReadCopy<KeyTypeId, 4> as RIType>::Inner,
    pub_key: <PassPointerAndRead<&Public, 32> as RIType>::Inner,
    msg: <PassFatPointerAndRead<&[u8]> as RIType>::Inner,
) -> <AllocateAndReturnByCodec<Option<Signature>> as RIType>::InnerExpand description
Sign the given msg with the ed25519 key that corresponds to the given public key and
key type in the keystore.
Returns the signature.