Product Overview
The Blocky Attestation Service (AS) is a powerful CLI and REST API providing verifiable serverless computation within Trusted Execution Environments (TEEs). It allows enterprises and developers to generate cryptographically-signed attestations for off-chain or external data, ideal for use cases requiring trustworthy data feeds, smart contract inputs, or transparent audit logs.
Why It Matters
- Hardware-backed integrity: Runs inside AWS Nitro Enclaves, delivering attestations tied to code and environment, with key measurements verified via reproducible builds.
- Layered attestation model:
- Enclave Attestations: Slow but comprehensive, attesting both TEE environment and service code-public key.
- Transitive Attestations: Fast, compact, and application-level, signed by enclave key and verifying logical outputs. Concepts
- Smart contract ready: Outputs in JWT or ABI-encoded formats for on-chain validation. Docs
Key Features
- Dual interfaces: Use the
bky-as CLI or REST API. CLI is installable via script or manual download.
- Secure configuration:
config.toml supports local or TEE-backed servers, with auth tokens and enclave measurement alignment.
- Broad integrations: Integrates with various external APIs—off-chain, Oracle, and smart contract ecosystems.
Developer Example: Coin Prices from CoinGecko
A practical example fetches crypto prices securely:
- Function within Blocky AS calls CoinGecko API (via HTTP).
- Parses JSON price responses.
- Returns attested output containing price data, timestamp, and enclave signature.
- Optionally formats as JWT or ABI for seamless integration.
Highlights: