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.7.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.7.1-py3-none-any.whl (88.1 kB view details)

Uploaded Python 3

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

Uploaded CPython 3.8+macOS 11.0+ ARM64

cryptodb-2.7.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.7.1.tar.gz.

File metadata

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

File hashes

Hashes for cryptodb-2.7.1.tar.gz
Algorithm Hash digest
SHA256 34c5e863c53c86e3b4d9af245777e1c29bddf04b1e295f7276d40cc2dccbba16
MD5 f2f81e050248930868fb3d91155e45bf
BLAKE2b-256 f52cbe3915c7a5ca7b9fcb31e24f9b03fc5c654d7d7981655057d9bc1e8bf6cc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cryptodb-2.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c5cd87deb7d87b63f58202303f3fb670bd1b499dfe1782c1d44c0c7c0db5d5a
MD5 bab8915195fb67a4b441943383070734
BLAKE2b-256 ee66cefe35262747afe87758a3a5e87442c4a2538cce74d5710ad69203c307b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptodb-2.7.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5106565ac91e4eed266fd956cde8b39dd6d9f75f6150ce8a852cc1689e785e8a
MD5 510c0d519f12edc960e264e449a18367
BLAKE2b-256 86a15a9d59b60f67a869eb40bee8d5f23d7d401f32646ebe08b29d28b4569380

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cryptodb-2.7.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a23e2fa30aa9616b7e3c0f05a13c06bc92dd4b10dbed1bdfed296dcb7ff09f28
MD5 dbad8a108cac72016ab64ba861b334d8
BLAKE2b-256 04be1d78d6d1818892142fbd22b11645f08ebd6b369d179d4b57882f922c01b3

See more details on using hashes here.

Release history Release notifications | RSS feed

2.8.2

4 files

2.8.1

4 files

2.8.0

4 files

2.7.2

4 files

This release

2.7.1 This release

4 files

2.7.0

4 files

2.6.3

4 files

2.6.2

4 files

2.6.1

4 files

2.6.0

4 files

2.5.55

4 files

2.5.45

4 files

2.5.44

4 files

2.5.43

4 files

2.5.34

4 files

2.5.2

4 files

2.5.1

4 files

2.5.0

4 files

2.4.468

4 files

2.4.68

3 files

2.4.3

4 files

Supported by

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