[][src]Function sp_io::crypto::ed25519_sign

pub fn ed25519_sign(
    id: KeyTypeId,
    pub_key: &Public,
    msg: &[u8]
) -> Option<Signature>

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

Returns the signature.