ZeqCompress
Zeqond-timestamped compression protocol. Creates .zeqc archives using Zstd level-19 compression with SHA-256 integrity verification. Custom binary format: ZEQC magic header, Zeqond timestamp, file metadata JSON, compressed payload. Includes forensic entropy analyzer (classifies data as RAW/COMPRESSED/ENCRYPTED).
| Endpoint | POST /api/zeq/compress |
| Auth | api-key |
| Rate limit | 10/min |
| Category | data |
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
data | string | Yes | Base64-encoded data to compress |
filename | string | No | Original filename for archive metadata |
level | number | No | Zstd compression level (1-22) |
Returns
{ archive (base64 .zeqc), sha256, zeqond, ratio, originalSize, compressedSize, forensic }
Example
curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"data": "<data>",
"filename": "<filename>",
"level": 19
}' \
"https://zeqsdk.com/api/zeq/compress"
This protocol is a named building block — one of the operations you
compose inside a state contract. Call it directly with
the request above, or invoke it from a contract that fires on your machine's
clock. Browse the whole library at GET /api/protocols; fetch this one at
GET /api/protocols/zeq-compress.