[][src]Function tari_crypto::ristretto::utils::sign

pub fn sign<D: Digest>(
    private_key: &RistrettoSecretKey,
    message: &[u8]
) -> Result<SignatureSet, SchnorrSignatureError>

Generate a random keypair and a signature for the provided message

Panics

The function panics if it cannot generate a suitable signature