Skip to main content

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).

EndpointPOST /api/zeq/compress
Authapi-key
Rate limit10/min
Categorydata

Parameters

NameTypeRequiredDescription
datastringYesBase64-encoded data to compress
filenamestringNoOriginal filename for archive metadata
levelnumberNoZstd 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.