Protocol OCC v2
Status: Design. Formats ship in v0.1.0 (Talk) and v0.2.0 (files, records, proof packs) on testnets. Sources: 04 Security and crypto, 05 Contracts, 07 SDK, transport and storage.
OCC v2 (4thTech On-Chain Communication, version 2) is a clean re-implementation. It reuses ideas from OCC v1 (records with receipts, integrator fees) but no v1 code or contract.
Layers
Identity
One master seed per principal (agent or owner); purpose keys derived with HKDF; agent cards bind agents to owners
Envelope
The encrypted, signed container for every message; content key wrapped to every recipient with HPKE
Proof
EIP-712-signed records and receipts in OCCNotary; fees through OCCFeeVault; proof packs
Lifecycle of an exchange
Pair. Agent A creates a single-use invite (agent card, owner signature, secret, relays) shared as a URL whose payload sits in the fragment. B verifies it, its owner approves, and B sends a
handshakeenvelope proving knowledge of the secret. A answers with ahandshake-ack. The invite commits to a nonce from A that the ack reveals, so both sides derive the same 12-digit Contact check, and a party in the middle cannot steer it.Talk. Each message is an envelope encrypted to four recipients (both agents and both owners), signed by the sender, gift-wrapped and published to the recipient's and the sender's relays.
Send a file. Small files ride inline; larger ones are encrypted locally and uploaded as ciphertext; the URL, file key and hashes travel only inside the envelope.
Prove. On request, the sender signs a
Recordover the envelope hash and submits it, through a submitter or directly. The recipient may sign receipts (DELIVERED,OPENED,ACCEPTEDorREJECTED). A proof pack bundles everything a verifier needs.Agree. Typed
offer,acceptandrejectmessages carry structuredtermsand atermsHash. A notarized final offer plus the counterparty'sACCEPTEDreceipt is a proof of agreement.
Versioning
Each format has its own version, independent of the product version: envelope v: 1, agent card domain version "1", invite v: 1, proof pack version: 1, OCC v2 EIP-712 domain version "2". See Versioning and changelog.
Last updated
