Skip to main content

sign

Function sign 

Source
pub fn sign(
    signing_key: &SigningKey,
    payload: &[u8],
    timestamp: i64,
) -> Signature
Expand description

Sign a payload with the given key and timestamp.

The canonical signed message is SHA-256(payload || timestamp_le_bytes).