Quickstart · Local testing · Wire v2
Try DAREP in about ten minutes
Run a Node receiver and a Python sender on your machine. Pin their identities, deliver a signed record, inspect the storage receipt, and watch a queued record arrive after the receiver restarts.
A receipt means stored, never done. This walkthrough uses a core message record sent by an owner through the CLI. It exercises the delivery protocol without an AI model or the experimental work lifecycle.
1. Clone and install
Use macOS or Linux with Git, Node.js 22.18 or later, Python 3.11 or later, and uv already installed. Allow about ten minutes for the walkthrough, plus any time needed to install these prerequisites. Keep ports 4711 and 4712 free.
Run these commands in order. All later commands run from the cloned darep directory. Let each install finish before continuing.
git clone https://github.com/darep-protocol/darep.git darep
cd darep
npm ci
npm ci --prefix reference/node
uv sync --locked --project reference/python --extra agentThe Python commands below use the interpreter in the new virtual environment, not your system python3. Node may print ExperimentalWarning: SQLite is an experimental feature on every command; the reference provider uses Node’s built-in SQLite, and the warning is expected. In the recorded macOS runs, uv selected Python 3.14.7, and the steps passed on Node 26.7.0 and Node 22.23.2. The commands have not been run on Linux for this guide.
2. Check the vectors
npm run vectors:checkOutput excerpt from the run (0.24 seconds):
all 71 vectors and 90 pin cases match records.md
check ok: 59 signatures verified, payload bytes and digests match; 50 records.md §8 verdicts match the vectorsNegative vectors are supposed to be rejected. A line such as ok … reject bad-signature means the verifier rejected the invalid input as expected.
3. Create two parties and pin their identities
Alice runs the Node reference provider; Bob runs the Python peer. Use fresh .darep/alice and .darep/bob directories for this walkthrough. Initialization creates local signing keys and public identity documents.
node reference/node/src/cli.js init --dir .darep/alice --id acct:alice@alice.test --origin http://127.0.0.1:4711
reference/python/.venv/bin/python reference/python/peer.py init --dir .darep/bob --id acct:bob@bob.test --origin http://127.0.0.1:4712
node reference/node/src/cli.js card --dir .darep/alice > .darep/alice.card.json
reference/python/.venv/bin/python reference/python/peer.py card --dir .darep/bob > .darep/bob.card.json
node reference/node/src/cli.js trust --dir .darep/alice --card .darep/bob.card.json
reference/python/.venv/bin/python reference/python/peer.py trust --dir .darep/bob --card .darep/alice.card.json{
"trusted": "acct:bob@bob.test"
}
{"trusted": ["acct:alice@alice.test"], "id": "https://alice.test/.well-known/darep/alice"}Here, you control both parties and copy their public cards locally. Between different owners, exchange and check these cards over a channel you already trust before running trust. Each card includes an identity document and a delivery endpoint. The .test names do not need DNS: verification uses the documents you pinned, and delivery uses the explicit loopback endpoints.
Create read-only credentials to inspect each party’s records. These grant commands print metadata and write credentials to local files; keep the client files private.
node reference/node/src/cli.js grant --dir .darep/alice --output .darep/alice.client.json --verbs read
reference/python/.venv/bin/python reference/python/peer.py grant --dir .darep/bob --output .darep/bob.client.json --verbs read4. Start both providers
Open two more terminals, each in the same cloned darep directory. Leave these commands running. Use your original terminal for the remaining commands.
node reference/node/src/cli.js serve --dir .darep/alice --port 4711Provider ready: acct:alice@alice.test at 127.0.0.1:4711reference/python/.venv/bin/python reference/python/peer.py serve --dir .darep/bob --port 4712Python provider ready: acct:bob@bob.testPlain HTTP is permitted here only because both inbox endpoints are on loopback. The exception covers inbox delivery only, not serving identity documents; here the identity documents are pinned from local cards, not fetched (HTTPS binding §1.3). This run does not test TLS or delivery between separate hosts.
5. Send a signed record and inspect its receipt
In your original terminal, send one record from Bob to Alice:
reference/python/.venv/bin/python reference/python/peer.py message --dir .darep/bob --peer acct:alice@alice.test --text 'Hello from the DAREP quickstart.'{"id": "f2f6200e-04ce-4ba2-bf4b-cd1e7f6a02e0", "thread": "f2f6200e-04ce-4ba2-bf4b-cd1e7f6a02e0"}This command signs and queues the record; it does not wait for a receipt. Read Bob’s delivery status:
reference/python/.venv/bin/python reference/python/peer.py call --grant .darep/bob.client.json --tool list_messages --json '{}'If delivery is still queued, run that read command again after a few seconds. In this run, the receipt was stored 0.14 seconds after the record was created. The returned fields included:
"attempts": 1
"delivery": "delivered"
"receiptStoredAt": "2026-11-24T19:29:55.787Z"delivered means Bob’s sender verified a matching signed receipt from Alice. It does not mean that Alice accepted or completed work. The outgoing outcome: applied field is local state, not evidence of the recipient’s work.
Read Alice’s stored record. The output includes signedBytes (Bob’s compact JWS) and receipt (Alice’s compact JWS):
node reference/node/src/cli.js call --grant .darep/alice.client.json --tool list_records --json '{}'To read the receipt’s header and payload, save that result and decode the two JSON parts. This display step does not verify a signature; Bob’s sender has already verified the receipt before marking delivery complete.
node reference/node/src/cli.js call --grant .darep/alice.client.json --tool list_records --json '{}' > .darep/alice.records.json
node --input-type=module <<'JS'
import { readFileSync } from 'node:fs';
const { records } = JSON.parse(readFileSync('.darep/alice.records.json', 'utf8'));
const receipt = records[0].receipt;
const decode = part => JSON.parse(Buffer.from(part, 'base64url').toString('utf8'));
console.log(JSON.stringify({ header: decode(receipt.split('.')[0]), payload: decode(receipt.split('.')[1]) }, null, 2));
JS"alg": "ES256"
"typ": "darep-receipt+jws"
"source": "acct:alice@alice.test"
"type": "https://darep.org/ext/core/v2#receipt"
"inReplyTo": "f2f6200e-04ce-4ba2-bf4b-cd1e7f6a02e0"
"sha256": "92e30fbbb136da85b8d45fbf5f4b592bcd7fdefff72739ad8cf43fdc9f01055b"
"storedAt": "2026-11-24T19:29:55.787Z"6. Hold a record while the receiver is offline
Press Ctrl+C in Terminal A to stop Alice. Leave Bob running in Terminal B. In your original terminal:
reference/python/.venv/bin/python reference/python/peer.py message --dir .darep/bob --peer acct:alice@alice.test --text 'Held while Alice is offline.'
sleep 2
reference/python/.venv/bin/python reference/python/peer.py call --grant .darep/bob.client.json --tool list_messages --json '{}'For the new record, the recorded run showed:
"attempts": 2
"deliveredAt": null
"delivery": "queued"
"receiptStoredAt": nullRestart Alice in Terminal A with the same directory:
node reference/node/src/cli.js serve --dir .darep/alice --port 4711In your original terminal, read Bob’s status again. Repeat this read until the second record shows delivered; retry backoff means it may take longer if you left Alice stopped for longer. Do not resend the message command: that would create another record.
reference/python/.venv/bin/python reference/python/peer.py call --grant .darep/bob.client.json --tool list_messages --json '{}'"attempts": 5
"delivery": "delivered"
"receiptStoredAt": "2026-11-24T19:30:49.326Z"The same record ID changed from queued to delivered. In this run, 17.44 seconds elapsed from creating the second record to its receipt, including the time Alice was stopped. Alice’s record list also contained it. When finished, press Ctrl+C in both provider terminals; the local data remains in .darep/.
7. Run the local conformance kit
From the repository root, run the Node adapter against the vectors, then the Python adapter in live mode. The kit starts its own local peers and writes their pins; your walkthrough providers need not be running.
npx darep-conformance offline --adapter node-reference --out .darep/reports/offline
npx darep-conformance live --adapter python-reference --out .darep/reports/live core verifier pass 164 fail 0 skip 0 advisory 0
core signer pass 14 fail 0 skip 0 advisory 0
core receiver pass 23 fail 0 skip 0 advisory 0
core sender pass 15 fail 0 skip 0 advisory 0
experimental receiver pass 0 fail 0 skip 4 advisory 0
Passes the DAREP v0.1 conformance kit (verification aid, not certification). core receiver pass 19 fail 0 skip 0 advisory 0
core sender pass 8 fail 0 skip 0 advisory 0
Passes the DAREP v0.1 conformance kit (verification aid, not certification).These results used kit 0.1.0 and Wire v2 (spec v0.1), repository commit 7a324e0. Offline scope: verifier, signer, receiver and sender; live scope: receiver and sender. The four experimental offline cases were skipped and do not decide core results.
Read report.md and report.json in each output directory, especially “Requirements not covered”. Passing does not demonstrate power-loss durability, 30-day retention, TLS or every normative requirement. The kit guide and adapter contract explain how to test your own implementation.
What you just saw
- Signed record: Bob’s provider signed the exact payload bytes using ES256. Alice verified the record against a pinned identity document. See signed records.
- Pinning: you chose which public identity documents each party trusts. No network lookup made that trust decision. See identity documents.
- Storage receipt: Alice returned a signed statement that she stored this record, binding its payload digest and storage time. Bob verified it. It means stored, not done; a signature cannot prove that a provider kept its storage promise. See the delivery contract and what a receipt proves.
- Held while offline: Bob kept the second signed record queued locally while Alice’s provider was stopped, then retried it after she restarted. This was a process stop/restart, not a power-loss test. See sender retry rules.
The local inbox endpoints use the HTTPS binding’s loopback test allowance, which covers inbox delivery only. The command-line tools and read credentials are implementation interfaces, outside the wire specification.
What this is not yet
- No network address resolution. Wire v2 uses owner-pinned identity documents and explicitly configured endpoints.
- No hosted service on darep.org. This site publishes protocol material; all providers in this walkthrough run on your machine.
- No independent-implementation evidence. The Node and Python reference implementations are written by the protocol editor; they are not independent of each other. This exercise does not replace interoperability testing with an implementation built by another party.
Found a confusing step or a mismatch with the specification? Share the command, version and error in Discussion #29. Do not include signing keys or client credential files.