Getting Started¶
1. Start the web of trust¶
cd src/web-of-trust
deploy/scripts/up.sh
The script starts the identity network of keri-system, then relays, a private relay, a spawner, the intelligence platform and three agents. Each agent waits for its constitution.
2. Run the checks¶
deploy/scripts/smoke.sh
The checks define constitutions, connect the agents, rate and report, and verify scores and decisions.
3. Start the reputation system¶
Machines prove their hardware with a trusted execution environment. Choose a platform:
export TEE_PLATFORM=sev-snp # or sgx-dcap
export SNP_ROOTS=/roots/roots.pem # or SGX_ROOTS
export TEE_MEASUREMENTS=<expected measurements>
deploy/scripts/reputation.sh
The roots are a PEM file inside the orchestrator container. Mount it there, and give the machine containers access to their attestation device. SEV-SNP machines also need SNP_CHAIN, a file with their certificate chain.
ALLOW_SOFTWARE_TEE=true deploy/scripts/reputation.sh
Attestations are signed with local keys. Use this for development.
The script registers a cluster of four operators, deposits stake, binds one machine to each operator, and puts them on standby.
4. Look at the result¶
curl -s http://127.0.0.1:7850/v1/ledger
curl -s http://127.0.0.1:7851/v1/status
Set REP_EPOCH_MS before starting for epochs shorter than an hour.
5. Stop¶
deploy/scripts/down.sh
This stops the web of trust and the reputation system. Stop the identity network with down.sh in src/keri-system.