pub fn sign_request(
key_id: impl Into<String>,
secret: &[u8],
timestamp: i64,
method: &str,
target: &str,
) -> Result<RequestSignature, AuthFailure>Expand description
Signs a transport target using HMAC-SHA256(timestamp + method + target).
For REST, target should be the path and query. For gRPC, it should be the canonical
/package.Service/Method path. Including the method prevents cross-verb replay.