Skip to content

Getting Started

Prerequisites

Docker with Compose, OpenSSL, and Python 3 for the checks.

1. Start the stack

cd src/relay
deploy/scripts/up.sh

The script builds the images, generates secrets and keys, and waits until every service is healthy.

2. Publish an asset

echo "hello" > hello.txt
deploy/scripts/rn.sh publish -file hello.txt -name hello -title "Hello" -tag t=ml -relay ws://personal:8080

The file goes to the asset store. The signed event goes to the personal relay, which pushes it to both public relays.

3. Find it

curl -s "http://127.0.0.1:7450/v1/search?q=hello"

The answer lists both registries under providers and the asset under items.

4. Fetch and verify it

deploy/scripts/rn.sh fetch -q hello -out copy.txt

The client recomputes the hash and reports "verified":true.

5. Use a replicated relay

deploy/scripts/rn.sh event -kind 1 -content "replicated" -relay ws://hrelay-1:8080
curl -s http://127.0.0.1:7460/v1/finality/<event id>

The event published on one relay is served by all three, and becomes final.

6. Search with proofs

Open http://127.0.0.1:7490. Every result is verified against a root attested by a majority of the aggregators. Publish a repository to see it listed.

7. Run the checks

deploy/scripts/smoke.sh

The checks cover publishing, push, synchronization, federation, archives, deletion, replication, partitions, crash recovery, proofs of inclusion, deletion and absence. They stop and kill containers of this stack while running.

8. Stop

deploy/scripts/down.sh