Skip to main content

Module auth

Module auth 

Source
Expand description

Ed25519 API-key credentials and request signing.

Structs§

Credentials
API-key authentication material.

Constants§

ACCOUNT_ID_ENV
API_KEY_ID_ENV
API_PRIVATE_KEY_ENV
HEADER_KEY_ID
HEADER_SIGNATURE
HEADER_TIMESTAMP
MAX_SIGNING_FUTURE_SKEW_MS
Maximum amount an automatically allocated signing timestamp may lead the local wall clock. The API accepts a 10-second freshness window; keeping the client ceiling at 5 seconds leaves room for clock and network skew.

Functions§

account_id_from_env
canonical_query
canonical_signing_string
encode_query_component
Percent-encode a query component for Polyester API-key canonicalization.
generate_ed25519_keypair
Generate a fresh Ed25519 keypair (hex seed + public key).
normalize_private_key
Accept a 64-char hex Ed25519 seed (32 bytes).
request_url