How Envolog tags work

An open description of the tag format, so any tag can be read with or without this company.

Each tag keeps its own record

Every label has three layers, so it keeps working no matter what:

  1. Printed text on the label: the item, where it is, and how to shut it off.
  2. A plain-text NFC record (on NFC tags): the same essentials, readable by any NFC reader app with no internet or website.
  3. A link (QR code and NFC) that contains the item's record itself, after the #. Browsers never send that part to any server.

Live sync is optional. When it's on, the link also carries a permanent tag code, and the app shows newer updates when it can reach the service. The tag's own copy is always there as a fallback.

Link formats

LinkMeaning
/#t=DATAAn item (or a house summary) stored entirely in the link
/t/CODE#s=DATAAn item with live sync. CODE is permanent; DATA is the tag's own copy
/h/CODE#s=DATAA house guide with live sync. DATA is an emergency summary

Reading DATA

DATA starts with one character, followed by base64url text (RFC 4648 §5, no padding):

Example in Python: json.loads(zlib.decompress(base64.urlsafe_b64decode(data[1:] + '==='), -15))

Item fields

KeyFieldKeyField
nItem namemModel
cType (Water, Gas, Electrical…)sSerial
lLocationdInstalled (YYYY-MM-DD)
iHow to use / shut offwWarranty until
aSafety warningvService every N months
bBrandk / pInstaller / phone
hService history (one line per entry)xNotes

House summaries are {"t":"h","n":name,"e":[[item, type, location, shutoff], …]}.

Timestamps (proof of date)

Each home's maintenance history is a hash chain: every entry's SHA-256 fingerprint covers the entry before it. About every 6 hours, Envolog timestamps the newest fingerprint of every home that changed:

  1. Leaf for each home: SHA-256("envolog-anchor-leaf|" + houseCode + "|" + entryNumber + "|" + entryFingerprint), as lowercase hex. Leaves are sorted by house code.
  2. Merkle tree: each pair becomes SHA-256("envolog-anchor-node|" + left + right); an odd leaf at the end of a level moves up unchanged. The top is the root.
  3. A short text statement containing the root is written, and its SHA-256 is timestamped in the Bitcoin blockchain through OpenTimestamps. Only that hash leaves Envolog.

Anyone can download a timestamp's statement (/api/anchors/N/statement) and proof file (/api/anchors/N/ots) and check them at opentimestamps.org or with the ots verify tool. A home's Merkle paths are at /api/house/CODE/proofs. Because the chain links every entry to the one before, a timestamp on entry N proves entries 1 to N existed by that date.

Hosting the viewer yourself

The whole viewer is one self-contained page: download it here. Put it on any web host, open it with a tag's #t= or #s= data, and it shows the record. No server or database is needed.