The Blocky Attestation Service Demo is provided with no guarantees. By trying out this demo or invoking the bky-as
executable you agree to not hold Blocky responsible for any problems, mishaps, adverse effects, or frustrations.
Blocky Attestation Service
Blocky Attestation Service (Blocky AS) allows you to create attestations over responses from web APIs. Blocky AS attestations allow you to prove to a third party that a specific API returned specific data at a particular point in time.
Quick Start
To request and inspect your first attestation, follow these steps:
- Install the Blocky AS CLI
curl -s https://raw.githubusercontent.com/blocky/attestation-service-demo/main/install.sh | bash
- Request an attestation with a API request template. Here we are creating an attestation over a trivia question and answer from Open Trivia Database.
echo '[{ "template": { "method": "GET", "url": "https://opentdb.com/api.php?amount=1" } }]' | \
./bky-as attest-api-call > out.json
- Inspect the attested API response. (You may need to install
jq
, if you don't have it already, to inspect JSON output.)
jq '.api_calls[0].claims.response.body | @base64d | fromjson' out.json
If you see a "response_code": 5
, it means you hit the rate limit of the Open Trivia Database API. Thanks for trying the demo multiple times!
This quick start demo started a local instance of the Blocky AS server, which does NOT run in a Trusted Execution Environment (TEE). For access to Blocky AS deployed on production TEE servers, reach out to info@blocky.rocks.
Replit Demo
If you would like to try out Blocky AS without installing the CLI locally, you may run from our Replit template.