Versions in this module Expand all Collapse all v0 v0.1.0 Aug 15, 2026 Changes in this version + func AbsDuration(d time.Duration) time.Duration + func BuildSigningPayload(ts time.Time, canonicalBody []byte) []byte + func CanonicalizeJSONBody(raw []byte) ([]byte, error) + func ParseTimestamp(value string) (time.Time, error) + func ReadAndBufferBody(r *http.Request) ([]byte, error) + type HMACVerifier struct + Key []byte + func (v HMACVerifier) Verify(_ context.Context, material Material) error + type Material struct + CanonicalBody []byte + Headers http.Header + Method string + Path string + RawQuery string + Signature string + Timestamp time.Time + type Verifier interface + Verify func(ctx context.Context, material Material) error + type VerifierFunc func(ctx context.Context, material Material) error + func (f VerifierFunc) Verify(ctx context.Context, material Material) error