DraftStandard open for review; the reference implementation covers L0–L5

Decentralized
real-time media relay

Zelay Network is a real-time media relay run by many independent operators, with an open standard and SDKs for three platforms. Nodes only forward ciphertext, and are paid only from receipts signed by the people they serve.

zelay-node -dev -http :8090Run a local dev node
ZHRRZenithpeak performanceHigh-speedfastResponseresponsiveRelayrelay

One room model, six real-time scenarios

Room IDs are self-certifying from the creator's address. Any node can serve any room, and one room can span many nodes. The first four differ only in parameters; the last two differ in how media is distributed.

How a call travels

From signing in to getting paid, in five steps — none of them through a central server.

    A six-layer protocol stack

    Each layer depends only on the layers below. The design started in Zelay, was proven in production by VeZoom's meeting service (branched from early Zelay), and is written up by the ZHRR standard as an open specification; Go, Dart and JS share conformance vectors that match byte for byte.

    Transport
    libp2p + WebRTClibp2p between nodes; clients via the embedded SFU
    State
    Signed CRDTsPer-author authorization, anti-entropy, total-order tie-break
    Identity
    EIP-191 · Ed25519Wallets, devices and nodes as signers
    Admission
    M-of-N committeeMoving to on-chain staking

    Decentralized at the base

    These six principles rank above every other rule in the standard. Where a rule conflicts with them, the principles win.

    Nodes only see ciphertext

    Media keys rotate in epochs. Whenever the roster changes a fresh key is sealed to each device of the people present whose membership the client has verified itself.

    Epoch record format in the developer center →

    Paid for verifiable service

    Uptime and self-reported traffic earn nothing. Anyone holding the same receipts and pool inputs can recompute the same settlement tree, byte for byte.

    Built for developers

    Join a room in a few lines. End-to-end encryption, cross-node rosters, decryption status and receipt metering live in the SDK. The SDK never asks you to export a private key: wallets, hardware wallets and secure enclaves can all sign.

    Open the developer center

    First adopters

    Apps run no central component Zelay depends on. If an app goes offline, the network keeps running.

    realtime rooms

    Gather

    Group voice and video in a decentralized messenger. Zelay is Gather's recommended default call network, and users can switch it in settings.

    video on demand

    Synframe

    An AI short-video platform. Its viewing receipts and work-based settlement rules are unified in Zelay as one receipt format.

    Roadmap

    The standard is still a draft, open for review. This is the actual state of the reference implementation.

    Developer center

    Build decentralized meetings, calls, group voice and on-demand video with Zelay. Everything for the SDKs, nodes, HTTP API and conformance vectors starts here.

    Quick start

    Run a dev node

    go build -o zelay-node ./cmd/zelay-node
    ./scripts/build-livekit.sh ./bin/livekit-server
    ./zelay-node -dev -http :8090 -data ./data

    Add the SDK

    # pubspec.yaml — pin to a commit
    dependencies:
      zelay_flutter:
        git:
          url: <zelay repo>
          path: dart/zelay_flutter
          ref: <commit>

    Join a room

    final client = ZelayNodeClient(Uri.parse('https://127.0.0.1:8090'), signer: wallet);
    final session = await ZelaySession.join(client, room: roomId);
    session.people.addListener(() => render(session.people.value));
    A dev node uses a self-signed certificate and single-node admission. Use it locally only; see "Run a node" for production.

    SDK

    PackageLanguageWhat it doesStatus

    Rooms and membership

    Room IDs are self-certifying: r + hex(sha256("zelay-room-v1\n" + lowercase creator address + "\n" + nonce)[:16]); group rooms start with g. Group membership is a v3 token signed by a group admin, valid for at most 7 days. The SDK renews it through groupTokenProvider.

    final token = await issueGroupMember(admin, groupId: gid, member: addr, ttl: Duration(hours: 24));
    final s = await ZelaySession.join(client, room: gid, groupNonce: nonce, groupTokenProvider: () => fetchToken());

    End-to-end encryption

    Two modes. By default Zelay manages epoch keys: it rotates whenever the roster changes and seals only to members the client has verified. Or your app manages the keys itself and Zelay only forwards ciphertext.

    final s = await ZelaySession.join(client, room: gid, e2ee: ZelayE2eeMode.appManaged());
    s.keys.setKey(3, epochKey);   // install the key first
    s.keys.setSendSlot(3);       // then switch the send slot
    s.e2ee.addListener(() => lock.value = s.e2ee.value.ready);
    # An epoch record (excerpt): nodes cannot tell who is on the roster
    {
      "v": 1,
      "room": "g3f9c…",
      "current": {
        "n": 7, "key_index": 6,
        "kid": "a41e09d2…",
        "wraps": [
          { "rid": "0c7a…", "eph_pub": "…", "ct": "…" },
          { "rid": "5e21…", "eph_pub": "…", "ct": "…" }
        ]
      },
      "auth": { "group_nonce": "…", "membership": "v3.…" }
    }
    
    # Sealing: X25519 + XChaCha20-Poly1305
    # rid derives from room, epoch, address and device; it hides the roster

    Receipts and metering

    With ReceiptOptions on, the SDK meters bytes down, bytes up and track-seconds from local WebRTC stats, and signs a receipt every 5 minutes and on leave. Each receipt carries an app-issued pass: weight 1 for member, 2 for vip.

    Run a node

    One binary and one public TLS port, with a patched SFU embedded. A node joins after presenting admission credentials from at least M distinct committee members, and once it binds a beneficiary address it claims USDT or USDC against receipts. Nodes ship no TURN server; relay-only clients bring their own.

    zelay-node admission-issue -peer <peer id> -ttl 90d -key-env ZELAY_ISSUER_KEY
    zelay-node -http :443 -data /var/lib/zelay -credential <v3…>

    HTTP API

    MethodPathAuthDescription

    Status codes

    CodeMeaningClient should

    CLI

    
    
    

    Conformance vectors

    Every implementation must pass the same vectors byte for byte. They live in conformance/ and are regenerated with ZELAY_UPDATE_VECTORS=1.