Cotton code
188 lines · 4.3 KB · JSONRaw
{  "format_version": 1,  "id": "passkey",  "name": "Passkey",  "plural": "Passkeys",  "picture": null,  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "rp_id",      "name": "Site",      "type": "text",      "required": true    },    {      "key": "rp_name",      "name": "Name",      "type": "text"    },    {      "key": "user_name",      "name": "Account",      "type": "text"    },    {      "key": "user_handle",      "name": "Account id",      "type": "text"    },    {      "key": "credential_id",      "name": "Credential id",      "type": "text",      "required": true    },    {      "key": "algorithm",      "name": "Algorithm",      "type": "choice",      "choices": [        "ES256",        "RS256",        "EdDSA"      ],      "labels": {        "ES256": "ES256",        "RS256": "RS256",        "EdDSA": "EdDSA"      },      "required": true    },    {      "key": "public_key",      "name": "Public key",      "type": "longtext"    },    {      "key": "private_key_enc",      "name": "Private key",      "type": "text",      "readonly": true,      "secret": true    },    {      "key": "vmk_version",      "name": "Vault key version",      "type": "number",      "readonly": true,      "hidden": true    },    {      "key": "transports",      "name": "Transports",      "type": "text"    },    {      "key": "sign_count",      "name": "Signature count",      "type": "number"    },    {      "key": "created_at",      "name": "Made",      "type": "date",      "format": "calendar-datetime"    },    {      "key": "last_used_at",      "name": "Last used",      "type": "date",      "format": "calendar-datetime"    },    {      "key": "uses",      "name": "Uses",      "type": "number",      "units": {        "one": "{n} use",        "other": "{n} uses"      }    },    {      "key": "note",      "name": "Note",      "type": "longtext",      "placeholder": "What this key is for"    }  ],  "title": "rp_id",  "date": "created_at",  "project": null,  "order": null,  "slip": {    "title": "rp_id",    "subtitle": "user_name",    "trailing": "last_used_at",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "rp_id",        "rp_name",        "user_name",        "algorithm",        "transports",        "uses",        "last_used_at",        "created_at",        "note"      ]    }  ],  "sort": {    "column": "rp_id",    "descending": false,    "tie": "user_name",    "tie_descending": false  },  "add": false,  "empty": {    "title": "No passkeys yet",    "message": "Save one from a site's sign-up and it is kept here."  },  "instructions": "One row per passkey the owner keeps: the key pair a site (rp_id, the relying party, such as web.whatsapp.com; rp_name its own name for itself) made for one of their accounts (user_name as the site shows it, user_handle the site's opaque id for it, base64url). credential_id is the key's id (base64url), algorithm its COSE algorithm (ES256, RS256 or EdDSA), public_key the COSE public key (base64url), transports how the key is reached, comma separated (internal, hybrid, usb, nfc, ble). private_key_enc is the private key sealed under the owner's devices (the vault master key at vmk_version, bound to the row's id): no read, list, search or face ever answers it. sign_count is the site's signature counter, uses how many times the key signed, last_used_at when it last did. Cotton Vault makes and signs with every one; never make, change or copy one by hand, and never write a real key anywhere else. Note is the owner's own words; Remove deletes the passkey, and the site then refuses it.",  "card": {    "face": "passkey.card",    "offers": [      "passkey.card"    ],    "fields": [      {        "slot": "title",        "column": "rp_name"      },      {        "slot": "subtitle",        "column": "rp_id"      },      {        "slot": "holder",        "column": "user_name"      },      {        "slot": "body",        "column": "note"      },      {        "slot": "facts",        "column": "created_at",        "also": [          "last_used_at",          "uses"        ]      }    ]  },  "groups": {    "stack": "slips"  }}