Aegis Optikon — TRNG API Documentation

Aegis Optikon provides provably random, physically sourced, cryptographically mixed entropy from distributed camera sensors. Every output is tamper‑evident, auditable, and derived from a transparent entropy pool.

Base URL

https://aegisoptikon.com

Authentication

All API requests require your API key:

x-api-key: YOUR_API_KEY

Find it on your Dashboard.

Available Endpoints

GET /random

GET /random?bytes=32

Returns physically sourced entropy mixed through a deterministic cryptographic pipeline.

curl -H "x-api-key: YOUR_API_KEY" \
"https://aegisoptikon.com/random?bytes=64"
{
  "entropy": "4f9c2a1e...",
  "id": "b2f1c9e8",
  "remainingCredits": 998736
}

GET /entropy

GET /entropy
{
  "poolSize": 32768,
  "sources": 14,
  "lastUpdate": 1734567890
}

GET /proof

GET /proof?id=OUTPUT_ID
{
  "output": "4f9c2a1e...",
  "sourceHash": "a7b91c...",
  "mixHash": "f0e3d9...",
  "timestamp": 1734567890
}

GET /health

{
  "status": "ok",
  "uptime": 123456,
  "entropySources": 14
}

Tier Capabilities

TierMax BytesBytes/minMonthly
Free325,0001,000,000
Starter12820,0001GB
Growth256100,0004GB
Pro512250,00010GB
Enterprise512+Custom50–200GB+

Per‑Request tier always returns 32 bytes.

SDK Examples

Node.js

const apiKey = "YOUR_API_KEY";
const res = await fetch("https://aegisoptikon.com/random?bytes=32", {
  headers: { "x-api-key": apiKey }
});
console.log(await res.json());

Python

import requests
res = requests.get(
  "https://aegisoptikon.com/random?bytes=32",
  headers={"x-api-key": "YOUR_API_KEY"}
)
print(res.json())

Go

req, _ := http.NewRequest("GET",
  "https://aegisoptikon.com/random?bytes=32", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
res, _ := http.DefaultClient.Do(req)
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(string(body))

Rust

let res = reqwest::Client::new()
  .get("https://aegisoptikon.com/random?bytes=32")
  .header("x-api-key", "YOUR_API_KEY")
  .send().await?.text().await?;
println!("{}", res);

PHP

$opts = ["http" => ["header" => "x-api-key: YOUR_API_KEY"]];
echo file_get_contents(
  "https://aegisoptikon.com/random?bytes=32",
  false, stream_context_create($opts)
);

Security Model

Mixing Pipeline

raw_entropy → SHA256(sourceHash)
           → SHA256(poolHash + timestamp)

Threat Model

Verifiable Randomness

1. Public Entropy Pool

GET /entropy

2. Output Lineage

GET /proof?id=OUTPUT_ID

3. Recomputable Hash Chain

mixHash = SHA256(sourceHash + timestamp)

4. Tamper‑Evident Guarantees

Compliance & Audit

Audit Features

Use Cases

Compliance Roadmap

Leave a Comment

Your feedback helps improve the API documentation.