TETHESIS
CRYPTOGRAPHIC ERASURE

Make a person’s data unreadable, and keep the record honest

Declare which properties hold personal data. Each value is encrypted under a key for the person it belongs to. Destroy that key and the values can’t be read — in current data or in history. The audit chain stays intact.

Read the quickstartDeveloper documentationdestroySubjectKey · proveErasure · signed receipt
Declare→Seal on write→Destroy the key→Prove it
HOW IT WORKS

Three steps, no deletes

1 · Declare

In the schema, mark a property as encrypted and name the property that identifies its subject — for example email sealed under userId.

2 · Write as usual

Every write that stores a version — CREATE, MERGE, SET, a label change — seals the declared values under that subject’s key. A write without the subject id is refused, never stored in clear.

3 · Erase

db.destroySubjectKey destroys every key version for the subject and appends a hash-chained receipt. From then on the sealed values read as erased, at any time cut.

WHAT CHANGES

The key goes; the record stays

Destroying the subject’s key makes the sealed values unreadable. The identifying property stays in clear, because the engine needs it to find the key — so use an opaque id, never an email, as the subject id.

Before erasure

userIdu-9341
emailjane@example.comsealed
phone+1-555-0100sealed

Declared values are encrypted per subject on every write.

→db.destroySubjectKey('u-9341')

After erasure

userIdu-9341
email— erased —
phone— erased —

Unreadable in current data and through AT VALID / AT RECORDED.

WORKED EXAMPLE

Declare, erase, prove

Mark the sensitive properties in the schema, then erase one subject and check the result.

# Declare: email and phone sealed per customer. POST /graphs/crm/schema { "Customer": { "properties": { "userId": { "type": "string" }, "email": { "type": "string", "encryption": { "subject_id_property": "userId" } }, "phone": { "type": "string", "encryption": { "subject_id_property": "userId" } } } }
CREATE (c:Customer {userId: 'u-9341', email: 'jane@example.com', phone: '+1-555-0100'}); // The request arrives. Record why. CALL db.destroySubjectKey('u-9341', {reason: 'data_subject_request'}) YIELD receiptId, nonce, commitment, signedReceipt; // Later: check the erasure. CALL db.proveErasure('u-9341', $nonce) YIELD erasureCompleted, keyDestroyed, chainStatus, checks, verificationNote;

The nonce is returned once and stored nowhere. The receipt holds only a commitment, SHA-256("gq-erase-v1" || nonce || subjectId), so nobody without the nonce can tell whose erasure it was. reason is one of data_subject_request, consent_withdrawn, retention_expired, legal_order, contract_ended, security_incident or other.

WHAT STAYS PROVABLE

Erasure you can stand behind

After an erasure, you can still show…How
The audit chain still verifies cleanAn erasure destroys keys; it rewrites no stored record or history entry.
That this graph recorded an erasure for exactly this subject, and whenThe receipt’s commitment opens to the subject and nonce — only the nonce holder can show it.
That the key is destroyed in the live key storekeyDestroyed
That the receipt log and erasure ledger are intactTheir own hash chains (chainStatus, ledgerChainStatus).
A signed statement anyone can check without the serversignedReceipt, verified offline against the server’s public keys.
Whether any sealed value still opens, live or in historydb.proveErasure data checks: records_live, records_history, plaintext_residue, derived_files…
WHAT IT DOESN’T COVER

Said plainly

Erasure reaches the live graph and the history written after the declaration. It does not reach:

  • backups and snapshots taken before the erasure;
  • values written before the property was declared encrypted;
  • properties that aren’t declared — a free-text note that repeats an email, say;
  • copies outside the database: what a client already read, or text sent to an outside model provider.

db.proveErasure lists what it did not examine in its own answer, so the gap is visible rather than assumed.

Search stays consistent. An erasure deletes the graph’s saved full-text search files and closes every open cursor, so no page served afterward carries the erased values. A sealed value is never placed in a full-text or vector index in the first place.
REQUIREMENTS & CONTROLS

What it needs, and who can run it

ItemHow it works
Key providerOn the hosted service, subject keys are held in a managed key service — erasure works with no extra setup. Self-hosted servers choose a local key, Vault, Azure or KMS; without a durable provider, declaring an encrypted property is refused.
Who can eraseA narrow erasure_admin key, scoped to named graphs. It can erase, prove and export — and nothing else that writes.
Safe retrySend the destroy with an idempotency key; a resend after a lost answer destroys nothing more.
Lookups on sealed valuesA blind index answers equality and MERGE on a sealed property from keyed fingerprints held in memory only, and drops the subject’s entries when the key is destroyed.
WORM graphsErasure is refused on a graph where WORM is engaged — nothing destroyed, no receipt.
Access exportdb.subjectExport returns a subject’s records with sealed values decrypted, for access requests.

Erase on request, and prove it later