Skip to main content

sign

Function sign 

Source
pub fn sign(keypair: &Keypair, message: &[u8]) -> Signature
Expand description

Sign an arbitrary message with the given keypair

The message is domain-separated by hashing it with a constant prefix, see the module documentation for the exact scheme.