Skip to main content

crypto-database

The database that can prove it never lied.


crypto-database is a content-addressed, hash-chained, time-traveling datastore. Every version of every record is an immutable, BLAKE2b-verified object in a Merkle DAG — nothing is ever overwritten, and the store can prove its own integrity on demand.

If your data is evidence — ledgers, audit trails, provenance, anything you may one day have to defend — crypto-database makes the history itself tamper-evident and replayable.

Why crypto-database

  • 🔒 Tamper-evident by construction. verify() re-hashes every object against its content address. Flip a single byte on disk and it's caught — silently impossible to forge history.
  • Time-travel is a query. AS OF <seq> returns the exact state at any point. VALID AS OF <time> adds bi-temporal validity — what was true, as of when.
  • 🧬 Causal provenance. caused_by links every record to the facts that produced it; TRACE walks the graph. Audit why, not just what.
  • 🔐 Encrypted at rest (AES-256-GCM), RESP2 wire protocol, SQL / Redis / Mongo adapters, a nedbd-v2 server daemon.

Install

npm install crypto-database   # Node (native addon)
pip install cryptodb          # Python  ← note the PyPI name
cargo add crypto-database     # Rust

Why the split name? crypto-database was already taken on PyPI by an unrelated project, so the Python distribution keeps the original cryptodb name there. npm and crates.io publish as crypto-database. Same engine, same version, same code — only the registry labels differ.

Reach for it when

Audit logs · financial & token ledgers · compliance trails · supply-chain provenance · anything where provable, replayable history is the product, not a nice-to-have.

import { NedbCore } from "crypto-database";
const db = new NedbCore();
db.put("ledger", "acct:alice", JSON.stringify({ balance: 100 }));
db.put("ledger", "acct:alice", JSON.stringify({ balance: 250 }));
db.getAsOf("ledger", "acct:alice", 0n);   // → balance 100, the past, intact
db.verify();                               // → true: nothing was tampered

crypto-database (previously CryptoDB) is a distribution of the NEDB engine, tuned for verifiability. Engine development happens upstream at Eth-Interchained/nedb. © Interchained LLC.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cryptodb-2.8.1.tar.gz (83.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

cryptodb-2.8.1-py3-none-any.whl (88.0 kB view details)

Uploaded Python 3

cryptodb-2.8.1-cp38-abi3-macosx_11_0_arm64.whl (1.4 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

cryptodb-2.8.1-cp38-abi3-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file cryptodb-2.8.1.tar.gz.

File metadata

  • Download URL: cryptodb-2.8.1.tar.gz
  • Upload date:
  • Size: 83.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for cryptodb-2.8.1.tar.gz
Algorithm Hash digest
SHA256 0bc33d4e6bcd44c85fd0ff96dd8beb6f068034927ef4e07d586d6d44498585ae
MD5 fbe232d8ff564dae0667a4b250ed41ca
BLAKE2b-256 24d4adee3c4aa2486246fd278013cd6f98319ba56c05cc0688c1c00b0c9f4c0f

See more details on using hashes here.

File details

Details for the file cryptodb-2.8.1-py3-none-any.whl.

File metadata

  • Download URL: cryptodb-2.8.1-py3-none-any.whl
  • Upload date:
  • Size: 88.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for cryptodb-2.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3fee65cf600985288bc747d7476225eaaf798caf2cd4320b4e5e165c8a85ccc2
MD5 9a1f905ff4f8499d5380cc1555591a00
BLAKE2b-256 a681d909369fd0172bded9adbb90452b3d215698cea366ea5a812eb06b0f8086

See more details on using hashes here.

File details

Details for the file cryptodb-2.8.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for cryptodb-2.8.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e0cc2af3f20f61f7866ee0183bf57c21f05ec87183ae6b5a4555a14c02e6b5a3
MD5 57f3834c7680b31b116300f997ff8282
BLAKE2b-256 562275a565a1ba7b08ed4f52937c7c4df30697be8099428c1cf9f5fe18f6f146

See more details on using hashes here.

File details

Details for the file cryptodb-2.8.1-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for cryptodb-2.8.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7138c1d09ba963d6a122ea34437506fe6923ed8ac7ccd0fffde28278f83300be
MD5 532587a2680520a29acbae1836359105
BLAKE2b-256 ca30d53b12b2471367a05b3278ada2f6a7a866260799299e2a435a62eab152eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page