# sigv4 AWS Signature V4, and an S3 client over `hairpin`. ```bend import bend-kit-sigv4@0.14.0.2/sigv4.bend as Sig import bend-kit-hairpin@0.16.0.1/hairpin.bend as Hairpin import bend-kit-http@0.40.0.1/http.bend as Http ``` `sigv4.bend` imports that `http`, `bend-kit-crypto@0.2.2.2`, `bend-kit-time@0.3.0.1`, and `bend-kit-collections@0.1.6.0`, whose `Order.string` sorts the canonical query. HMAC-SHA256 needs OpenSSL 3 (`BEND_LIBCRYPTO` on the crypto package). `Credentials` holds the access key, secret, and session token. An empty token means a long-term key. `sign` returns the `Authorization` value. The date argument is `x-amz-date` form, `YYYYMMDDTHHMMSSZ`. `authorize` returns that header and the signed `x-amz-date`. `presign` builds a query-string signature with an expiry in seconds. S3 path encoding is not the encoding used for other services. `new`, `put`, `get`, and `list` are the S3 client. `from_env` reads the usual AWS environment variables. `put` and `get` return the `Client` beside the result. `retry(c, n)` gives an idempotent request up to n more attempts through Hairpin's retry policy. `ErrNet` holds a `Hairpin.Err`. `check.bend` signs the AWS suite vectors. `smoke.bend` talks to a live bucket when the environment is set. `pure.bend` builds canonical requests, signing strings, authorization headers, and presign queries without cryptographic or network effects. `LAWS.bend` imports this module. Run `bend sigv4/PROOF.bend --verdict` from the repository root to check every claim with the pure proof gate. The runtime API delegates to the same definitions.