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: Ed25519ph, the message pre-hashed with SHA-512.

ยงPanics

If secret_key is not an Ed25519 key.