Install¶
WORLDLINE is a Python 3.12 package with a worldline command, plus an optional static viewer and an optional HTTP verifier.
Prerequisites¶
| Tool | Version | Needed for |
|---|---|---|
| Python | 3.12 or newer | everything |
| uv | any recent release | environments and running commands |
| Node.js | 20 or newer | the viewer only |
| git | any | cloning, and the commit digest that releases are bound to |
Install¶
The dev extra adds pytest and Hypothesis. To run the HTTP verifier locally, also add the service extra:
Check the install¶
The test suite covers units, properties, integration, and the CLI. All tests should pass. worldline --help lists the commands, which are documented in the CLI reference.
Configuration¶
You don't need any environment variables to run WORLDLINE locally. The demo generates a throwaway signing key, so the whole chain runs on a laptop.
Two kinds of configuration matter later:
- On GitLab CI, the protected variable
WORLDLINE_KERNEL_KEYholds the kernel's Ed25519 private key, which you generate withuv run worldline keygen. Commit only the matching public key,policies/kernel_public.pem. See GitLab workflow. - For the verifier service,
WORLDLINE_DATA_DIR,WORLDLINE_UI_DIST,WORLDLINE_POLICY_DIR, andGIT_COMMIToverride where it finds data, the viewer, the policy, and the reported commit. See Operations.
The viewer (optional)¶
cd ui
npm ci
npm run build # copies ../experiments/out (or the fixtures) into dist/data
npm run preview
Next: First run.