Datumesh

Protocol

A cell is a named function applied to arguments. Its answer is a signed receipt, and the receipt says when the mesh knew it. Each part below has one example, checked on production.

Addresses

A call has two forms: the positional one, in the function's own argument order, and the labelled one. Both name the same cell, and the same receipt.

datumesh.com/relay/treasury.gov/par_yield(10Y, 2026-11-20)
datumesh.com/relay/treasury.gov/par_yield(tenor: "10Y", date: 2026-11-20)

4.92

value 4.92
receipt 3598ce7511927393d7c10db9bdd132e56bb2479d6ef953a3d834db565ecc279c

Receipts and verification

Every receipt is signed by its publisher's key, and anyone can check it against the published key document. The two libraries below verify the same receipt. The Python and JavaScript libraries read and verify receipts today.

# Python, with datumesh 0.7.0
from datumesh import fetch_keys, verify; import json, urllib.request; r = json.load(urllib.request.urlopen("https://datumesh.com/receipt/3598ce7511927393d7c10db9bdd132e56bb2479d6ef953a3d834db565ecc279c")); v = verify(r, fetch_keys("datumesh.com")); print(v.ok, v.level)

// JavaScript, with @datumesh/verify 0.7.0
import { fetchKeys, verify } from "@datumesh/verify";

const receipt = await (await fetch("https://datumesh.com/receipt/3598ce7511927393d7c10db9bdd132e56bb2479d6ef953a3d834db565ecc279c")).json();
const r = verify(receipt, await fetchKeys("datumesh.com"));
console.log(r.ok, r.level);
True signed
true signed

Lineage

The spread of two Treasury yields is a public computed cell. Its receipt lists its inputs, and each input receipt can be fetched by its hash and verified on its own.

datumesh.com/finance/treasury_spread(10Y, 2Y, 2026-11-20)
import json, urllib.request
from datumesh import fetch_keys, verify

cell = json.load(urllib.request.urlopen("https://datumesh.com/cell/datumesh.com/finance/treasury_spread(10Y,2Y,2026-11-20)"))["receipt"]
keys = fetch_keys("datumesh.com")
for h in cell["inputs"]:
    r = json.load(urllib.request.urlopen("https://datumesh.com/receipt/" + h))
    v = verify(r, keys)
    print(v.ok, v.level)

0.29

  • par_yield 10Y: 4.92, receipt 3598ce751192…
  • par_yield 2Y: 4.63, receipt 8f6629bf403f…

Each input receipt was fetched by its hash and verified.

As-of time

Two times matter: valid time is the date argument, the day the value is about, and transaction time (tx) is when the mesh learned it. An as-of instant asks what was known by then: a date means the end of that day in UTC.

Trust labels

A relayed cell carries its source's URL and checksum. A primary cell is published by its own publisher. The trust field says which.

datumesh.com/relay/ecb.europa.eu/fx_reference(USD, 2026-11-20)
datumesh.com/scripture/verse(tanakh, Gen, 1, 1).text(uxlc)

The ECB cell is relayed; the Genesis verse text is primary.

Licences

A receipt carries the licence of its data, and a result inherits the licences of its inputs. A licence is accepted on your machine with datumesh licence accept; results computed under it stay on your machine and are never published or exported. A result from several licences carries this identifier:

LicenseRef-datumesh-local-derivation
datumesh licence accept 'https://www.law.cornell.edu/uscode/text/17/105'
# A result from inputs under several licences is labelled LicenseRef-datumesh-local-derivation
bank_rate: OGL-UK-3.0
treasury: https://www.law.cornell.edu/uscode/text/17/105
ecb: https://www.ecb.europa.eu/services/using-our-site/disclaimer/html/index.en.html

Namespaces and classes

The host decides the publisher of a name: the first segment is the publisher's domain, and ECB in a name is the source. A class groups cells and their methods, and a short id names an object. A relay such as datumesh.com/relay/ecb.europa.eu/… is a stand-in: when the source publishes the same function under its own domain, its own publication ranks above the relay. Among the sources of one catalogue subject, a publisher whose host is the source's domain or a sub-domain of it ranks first; then relays and views over relays; then any other publisher. A parent domain does not count. The rule is the catalogue's rule.

publisher datumesh.com
source ecb.europa.eu
kind method
short id ddbc45ca1630