Cotton code
48 lines · 1.5 KB · JSONRaw
{  "format_version": 1,  "id": "seal_key",  "name": "Seal key",  "plural": "Seal keys",  "visibility": "owner",  "date": "created_at",  "columns": [    {      "key": "pub",      "name": "Arrival key",      "type": "text",      "readonly": true    },    {      "key": "dk_enc",      "name": "Sealed data key",      "type": "longtext",      "readonly": true    },    {      "key": "vmk_version",      "name": "Vault key version",      "type": "number",      "readonly": true    },    {      "key": "v",      "name": "Seal version",      "type": "number",      "readonly": true    },    {      "key": "created_at",      "name": "Made",      "type": "date",      "format": "calendar-datetime",      "readonly": true    }  ],  "instructions": "The keys sealed tables are sealed with, as rows that hold no secret a device cannot open. Row dk holds the database's data key sealed under the vault master key (dk_enc, at vmk_version): the first vault device mints it once, and every other device opens it with the vault when its key store holds none. Row v:<table> holds that sealed table's current seal version (v), which only moves forward: a device writes the next one when an unlock window on the table ends, so rows written after it are sealed under keys the window never saw. Never write a column by hand; no row is deleted.",  "add": false,  "delete": false,  "empty": {    "title": "No seal keys yet",    "message": "Your first vault device makes the data key here once a table is sealed."  }}