Tamper-evident audit chains for AI.
Nexuscone produces time-anchored, cryptographically verifiable audit trails for AI decisions. Bitcoin anchoring via OpenTimestamps and RFC 3161 trusted timestamping. Apache 2.0 licensed, v0.2.1 on PyPI.
pip install nexuscone
Quickstart
Get running in under a minute
import asyncio
from nexuscone import Ledger
async def main() -> None:
async with Ledger("audit.db") as ledger:
await ledger.log(
actor="user_service",
action="user_login",
payload={"user_id": "u-001", "ip": "203.0.113.7"},
)
count = await ledger.verify_chain()
print(f"chain valid, {count} entries")
asyncio.run(main())
Install
pip install nexuscone. Pure Python, runs on Python 3.10 through 3.13, no native build step.
Open
Open an async Ledger context against a local SQLite file. The chain is created on first use.
Log
Call await ledger.log(actor, action, payload) for each event. Payload is any JSON-serialisable dict.
Verify
await ledger.verify_chain() walks every entry and recomputes its hash. Any tamper raises ChainVerificationError.
The Trust Model
Three layers of cryptographic assurance
Periodic chain state commitments to the Bitcoin blockchain provide global, immutable proof of existence at a specific point in time.
Trusted third-party timestamps from accredited Time Stamping Authorities provide legally admissible proof of time under eIDAS.
An append-only SHA-256 hash chain in a local SQLite database ensures tamper-evidence: any modification breaks the chain integrity.
How Nexuscone Works
Every audit entry passes through cryptographic verification
Capture
AI decision payload received with metadata
Hash
SHA-256 computed with previous hash link
Sign
Ed25519 signature for authenticity
Timestamp
RFC 3161 TSA token acquired
Anchor
Bitcoin commitment via OpenTimestamps
CLI Reference
Command-line tools for chain and anchor verification
Open Source
Transparent by design
Nexuscone is fully open source under the Apache 2.0 licence. The cryptographic primitives, chain implementation, timestamping integrations, and CLI tooling are publicly auditable on GitHub and installable from PyPI.
Audit infrastructure has to be transparent to be trustworthy. Every byte of Nexuscone is published, every commit is in the open, every release is reproducible from source. Run it locally, read the code, verify the chain yourself.
Specs and Standards
Built on battle-tested cryptographic foundations
OpenTimestamps
Bitcoin-anchored timestamping standard for decentralised proof of existence.
View SpecStart building tamper-evident audit trails today.
Open source. Battle-tested cryptography. Production ready.
Nexuscone is maintained by Aperintel Ltd, London.