Skip to main content

sign_bytes

Function sign_bytes 

Source
pub fn sign_bytes(secret_key: &SecretKey, msg: &[u8]) -> Signature
Expand description

Signs msg with secret_key: plain Ed25519 (RFC 8032), no pre-hash.

ยงPanics

If secret_key is not an Ed25519 key.