keybase / proofs

Public Keybase Proof System
BSD 3-Clause "New" or "Revised" License
113 stars 57 forks source link

generic stubbing/expansion support #167

Closed maxtaco closed 4 years ago

maxtaco commented 4 years ago
{
  "body": {
    "cryptocurrency": {
      "address": "1BjgMvwVkpmmJ5HFGZ3L3H1G6fcKLNGT5h",
      "type": "bitcoin"
    },
    "key": {
      "host": "keybase.io",
      "kid": "012085b48c269ab5b17e07a64fbbc378ca4201dcc26bff4c1ba3fcb99eeaf0b6b69a0a",
      "uid": "389b29bec041e89fe4fd3c9d50a15619",
      "username": "u_f1977962b6"
    },
    "type": "cryptocurrency",
    "version": 2
  },
  "ctime": 1578670773,
  "expire_in": 157680000,
  "prev": null,
  "seq_type": 1,
  "seqno": 1,
  "tag": "signature"
}
- with the following "expansions" dictionary:

```json
{
  "ccba4b68dc528896a423ccda1320ef9f84e15ae6345cf0140803b10f77841654": {
    "address": "1BjgMvwVkpmmJ5HFGZ3L3H1G6fcKLNGT5h",
    "type": "bitcoin",
    "entropy": "O45K0tpXSft1nB0FqPoDmw=="
  }
}
maxtaco commented 4 years ago

We're doing this so that we can delete, selectively, certain parts of the sigchain by withholding the expansions.

maxtaco commented 4 years ago

Note in the above example, that before any item is stubbed out, entropy is added in, so that someone trying to reconstruct the deleted portion can't guess.