Skip to content

Getting Started

1. Start the system

cd src/compute
deploy/scripts/up.sh

The script creates keys and certificates, and starts four ledger nodes, four controllers, three auditors and the supporting services. After a short time the first epoch is active.

2. Submit a task

deploy/scripts/submit.sh -task task-1 -action kv.put -input '{"key": "greeting", "value": "hello"}'

The tool finds the leader of the current epoch and submits the task. With mode sync, the default, it returns while the quorum verifies the task.

3. See the result

bash -c '. deploy/scripts/lib.sh; load_env; compose run --rm e2e dctl get task/task-1'

The task goes through proposed, approved, executed and, after an audit, finalized.

4. Look at the epoch

bash -c '. deploy/scripts/lib.sh; load_env; compose run --rm e2e dctl get cur/default'
bash -c '. deploy/scripts/lib.sh; load_env; compose run --rm e2e dctl get epoch/default-1'

The first command prints the identifier of the current epoch, the second the details of one.

5. Run the checks

deploy/scripts/e2e.sh

They include a dishonest controller that is detected and revoked. Run them on a system you can discard.

6. Stop

deploy/scripts/down.sh