Skip to main content

signature_for

Function signature_for 

Source
pub fn signature_for(body: &str, secret: &str) -> String
Expand description

The sha256=<hex> HMAC-SHA256 signature of body under secret (06 §4.2’s X-Pointlock-Signature). Computed over the exact body bytes — any reformatting on the receiving side must verify against the raw payload.