Less plumbing.
Explicit trust.
Lightweight Python and TypeScript wrappers for live gate calls and real Ed25519 clearance receipt signature verification. No issuer keys. No legacy verifier fallback.
python -m pip install cryptographyTypeScript uses native WebCrypto Ed25519; use a supported Node or browser runtime. It does not require a private key to verify a receipt.
from arkheia import (
ArkheiaClient, load_json_file, verify_clearance_receipt
)
client = ArkheiaClient()
print(client.clearance_head())
# Your own fresh, signed request — not the sample fixture.
request = load_json_file("mandate-request.json")
result = client.mandate_verify(request)
receipt = load_json_file("clearance-receipt.json")
if not verify_clearance_receipt(receipt):
raise RuntimeError("Receipt signature invalid; block execution")
# Signature validity alone is NOT permission to execute.
# Enforce the publisher's permit, binding, expiry, and replay rules.The verifier checks the supplied signing rule with the pinned clearance key. The exact closed clearance receipt and execution-permit schemas were not included in the supplied document. Enforce those schemas and signed action-binding, decision, validity, and replay rules before execution.
Client methods
Python: clearance_head(), mandate_verify(request), aegis_evaluate(request)
TypeScript: clearanceHead(), mandateVerify(request), aegisEvaluate(request)
Python: verify_clearance_receipt(receipt) → bool
TypeScript: await verifyClearanceReceipt(receipt) → booleanTransport wrappers preserve HTTP failures, reject redirects, cap JSON bodies, and compare both public-key pins before POST. They do not sign actor mandates, sensor observations, or authority approvals.
Download the complete SDK quickstart