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