Data Contracts
A Dash Platform data contract defines the document types an application may write. EvoBin writes to one upload contract and uses a second contract for the DashConnect key exchange.
Contract IDs
| Contract | ID | Used by |
|---|---|---|
| Upload contract | FgeMdT68DwmHR6QRkQ14BgsWbYrN8gbEhdJwEYpiJSSi | Manifest and media documents |
| Key-exchange contract | 7UaqHGBJBbRLJ4fUWS45cnud8PPUugJWoGTt1SKwHJ2P | DashConnect QR handoff |
Do not confuse the key-exchange data contract ID with the contractId field
inside its documents. They are different identifiers.
Manifest document
The manifest describes the file. The current upload path writes:
| Field | Meaning |
|---|---|
name | Original file name |
kind | file |
type | Broad file type (image, document, etc.) |
mimeType | MIME type, or application/octet-stream |
fileSize | Original size in bytes |
contentHash | SHA-256 of the file |
hashAlgorithm | sha256 |
hashEncoding | hex |
compressionScheme | none |
encryptionScheme | none |
chunkCount | 1–50 (one per media document) |
chunkSizeBytes | 20000 |
encryptionScheme: 'none' is the current truth. The file is public to anyone with
the manifest ID.
Media document
The media document contains the payload. The current path writes:
| Field | Meaning |
|---|---|
parentId | Manifest ID as a 32-byte identifier |
chunkIndex | 0–49 |
totalChunks | 1–50 |
size | Payload size for this chunk |
totalSize | Original file size |
chunkHash | SHA-256 of this chunk |
payload1 … payload4 | Up to four 5,120-byte payload arrays |
The payload arrays are stored as Uint8Array so pshenmic serializes them as compact
byteArray values. A plain JS number array roughly doubles the transition size.
Protocol limits that matter
| Limit | Value |
|---|---|
| Max state-transition size | 20,480 bytes |
| Max field value size | 5,120 bytes |
| Payload arrays per media document | 4 × 5,120 bytes |
| Max media-document payload | 20,000 bytes |
| Current UI file limit | 1,000,000 bytes (up to 50 chunks) |
The 1,000,000-byte UI limit is a product choice, not the protocol maximum. The uploader splits files into up to fifty media documents, each with its own nonce and state transition. Files above 1,000,000 bytes and resumable uploads remain roadmap items.
Reads are contract-agnostic
The public viewer and raw routes read the manifest and media documents, reassemble
the payload, and return it. They do not require a wallet. The /meta route exposes
the manifest and media metadata as JSON.