{
  "format": "CLARA-NETWORK-SPEC-1",
  "publisher": "MineSpace Inc.",
  "website": "https://minespace.us/Clara/network.html",
  "workspace": "network-console.html",
  "sdk": {
    "ledger": "ledger.mjs",
    "compiler": "contracts.mjs",
    "rf": "rf.mjs",
    "tools": "network-tools.mjs"
  },
  "ledger": {
    "format": "CLARA-LEDGER-1",
    "maxBlocks": 512,
    "authority": "single pinned Ed25519 sequencer",
    "transactionTypes": [
      "deploy",
      "invoke",
      "attest",
      "message"
    ],
    "signatures": "Ed25519 with domain-separated canonical JSON",
    "integrity": "SHA-256 previous links and deterministic state commitments",
    "replay": "full chain verification against network and authority pin; per-actor nonces; contract revision checks",
    "privacy": "not encrypted; ledger snapshots expose content",
    "explorer": "Search and paginate verified records; local SHA-256 file hashing (32 MiB limit)"
  },
  "contracts": {
    "format": "CLARA-CONTRACT-1",
    "grammar": "contract Name : Int|Bool = literal access owner|public; followed by fn transition(state: T, input: T): T",
    "types": [
      "Int (signed 32-bit boundary)",
      "Bool"
    ],
    "compiler": "Native CLARA AST, pure subset validation, CLARA-WEB-BC1 bytecode and direct WASM binary; successful transitions compared across both targets",
    "restrictions": "No loops, external calls, host I/O, storage, mutable locals or financial assets. Bounded straight-line and conditional expressions.",
    "dryRun": "VM and WASM transition comparison before committing; no ledger mutation"
  },
  "nodes": {
    "download": "clara-node-kit.zip",
    "runtime": "Node.js 22+",
    "roles": [
      "authority",
      "mirror"
    ],
    "default": "loopback HTTP 127.0.0.1:8788; no remote listener",
    "api": {
      "GET /node/status": "public identity and height",
      "GET /node/chain": "operator or read-only bearer token, signed snapshot",
      "POST /node/submit": "operator bearer only, independently signed transaction; authority only",
      "GET /node/access": "Authenticated role and effective write/read-only capability"
    },
    "replication": "manual snapshots or explicit authenticated CLI pull; pinned extension verification; no consensus or automatic discovery; separate read-only replication credential",
    "credentialRotation": "Stop node; rotate-tokens CLI replaces both bearer tokens atomically without changing ledger identity."
  },
  "rf": {
    "mode": "receive-only, imported IQ recording or synthetic demo",
    "format": "Interleaved little-endian float32 or unsigned 8-bit complex I,Q",
    "maxComplexSamples": 16384,
    "analysis": "Hann-windowed radix-2 FFT, relative magnitude, peak offset, RMS",
    "limitations": "No direct hardware interface, no transmission, no calibrated RF power."
  },
  "security": "Local reference implementation, not a cryptocurrency network or certified critical infrastructure. Do not store secrets in ledger transactions. No public finance, money or automatic consensus."
}
