[][src]Function rust_ipv8::crypto::signature::sign

pub fn sign(
    keypair: &KeyPair,
    message: &[u8]
) -> Result<Signature, Box<dyn Error>>

A function which takes in a KeyPair and message and returns only the signature