Skip to main content

sign

Function sign 

Source
pub fn sign(sk: &SecretKey, msg_hash: &[u8]) -> Option<Vec<u8>>
Expand description

Sign a message hash (m field elements). Returns the signature x ∈ GF(256)^n, or None if the Oil-and-Vinegar inversion kept hitting singular systems (astronomically unlikely).