Module X402::RequestBinding ¶
Computes canonical hashes of request headers and body for binding challenges and proofs to the actual HTTP request.
Public Class Methods¶
body_sha256(rack_request) ¶
Compute SHA-256 hex digest of the request body. Returns the hash of an empty string if no body is present.
headers_sha256(_rack_request) ¶
Compute SHA-256 hex digest of canonical request headers. For v1, this is the empty string hash (no headers bound).
sha256_hex(data) ¶
Not documented.