ZPK1 - Protocol
ZEUS PROOF KERNEL v1 - Canonical Proof Formatting
Status: Stable
Version Prefix: ZPK1
Introduced In: zeus-time 0.3.0
ZPK1|canon=json_sorted_compact|algo=blake3|tag=invoice:v1|digest=91ab4e8f4c2b7f...Purpose
ZPK1 defines a deterministic, portable, human-readable packaging format for pre-hashed payloads intended for temporal attestation by ZEUS.
ZPK1 exists to:
Eliminate JSON formatting ambiguity\
Prevent whitespace and encoding drift\
Avoid raw payload transmission\
Ensure strict cross-language reproducibility\
Bind canonicalization and algorithm choice into the attested object
ZPK1 contains no raw payload data. It contains only metadata and a digest.
Canonical String Format
ZPK1 is a UTF-8 encoded, pipe-delimited string with strict field ordering.
Without tag
With optional tag
Structural Rules
The following rules are mandatory:
The string MUST begin with the literal prefix
ZPK1Fields MUST appear in exact order
No additional fields are permitted
No whitespace is permitted anywhere in the string
The delimiter between fields is
|The delimiter between key and value is
=Field names are lowercase and case-sensitive
The string MUST be valid UTF-8
Empty fields are not allowed
ZPK1 is intentionally strict. No auto-correction is permitted.
Required Fields
Optional Field
tag
Optional short descriptor.
Rules:
Must not contain
|Must not contain
=Must not be empty
UTF-8 encoded
Recommended maximum length: 64 characters
Must not contain sensitive data
Does not affect digest calculation
If present, tag MUST appear between algo and digest.
Correct ordering:
If omitted, the field must be removed entirely.
Determinism Requirements
Given identical input and canonicalization method:
The resulting digest MUST be byte-identical
The resulting ZPK1 string MUST be byte-identical
Tag MUST NOT influence digest
Repacking identical data MUST produce identical ZPK1 output
ZPK1 is deterministic by design.
Validation Requirements
Any compliant validator MUST reject:
Incorrect prefix
Incorrect field order
Missing required fields
Extra fields
Unsupported
canonvaluesUnsupported
algovaluesUppercase hexadecimal
Incorrect digest length
Whitespace anywhere
Empty or malformed tag
Malformed key/value structure
Validation must be strict. Silent normalization is not allowed.
Attestation Behavior (ZEUS Verify)
When a ZPK1 string is submitted to ZEUS Verify:
The entire string MUST be stamped exactly as received
Receipt binding is to the full packed string, not just the digest
Verification requires exact string match
ZPK1 enables privacy-preserving timestamping without transmitting raw payload data.
Versioning Policy
ZPK1is the protocol version markerStructural breaking changes require a new prefix, e.g.
ZPK2Backward compatibility between major ZPK versions is not guaranteed
ZPK1 behavior is fixed once published
Design Principles
ZPK1 is:
Minimal\
Deterministic\
Strict\
Human-readable\
Machine-parseable\
Privacy-preserving\
Non-extensible within a version
ZPK1 intentionally avoids hidden defaults and ambiguous parsing.
Last updated