Skip to content

Getting Started

1. Start a network

cd src/keri-system
deploy/scripts/up.sh

This builds the images, creates keys for four witnesses and two watchers, and starts them with a transport relay, a wallet and an agent.

2. Look at the agent's identity

curl -s http://127.0.0.1:18480/v1/identity
{"aid": "E...", "role": "org", "state": {"s": 0}, "pending": false}

pending is false once enough witnesses receipted the inception. The state is shortened here.

3. Rotate keys

. deploy/.state/secrets.env
curl -s -X POST http://127.0.0.1:18480/v1/rotate -H "Authorization: Bearer $ADMIN_TOKEN" -H "Content-Type: application/json" -d '{}'

4. Run the checks

deploy/scripts/e2e.sh

They cover delegation, credentials, policy, replay, key theft and recovery, and forks.

5. Start DIDComm agents

deploy/scripts/did.sh
curl -s http://127.0.0.1:18482/oobi

This starts a mediator on port 18481 and an agent on 18482 that receives messages through it.

6. Stop

bash -c '. deploy/scripts/lib.sh; load_env; compose --profile did down'
deploy/scripts/down.sh

The first command stops the DIDComm agents. Run it before deploy/scripts/purge.sh --yes too, which removes everything including keys.