{
  "protocol": "tlfKeys",
  "imports": [
    {
      "path": "common.avdl",
      "type": "idl"
    }
  ],
  "types": [
    {
      "type": "record",
      "name": "CanonicalTlfName",
      "fields": [],
      "typedef": "string"
    },
    {
      "type": "record",
      "name": "CryptKey",
      "fields": [
        {
          "type": "int",
          "name": "KeyGeneration"
        },
        {
          "type": "Bytes32",
          "name": "Key"
        }
      ]
    },
    {
      "type": "record",
      "name": "TLFCryptKeys",
      "fields": [
        {
          "type": "TLFID",
          "name": "tlfID"
        },
        {
          "type": "CanonicalTlfName",
          "name": "CanonicalName"
        },
        {
          "type": {
            "type": "array",
            "items": "CryptKey"
          },
          "name": "CryptKeys"
        }
      ]
    }
  ],
  "messages": {
    "getTLFCryptKeys": {
      "request": [
        {
          "name": "tlfName",
          "type": "string"
        }
      ],
      "response": "TLFCryptKeys",
      "doc": "getTLFCryptKeys returns TLF crypt keys from all generations."
    }
  },
  "namespace": "keybase.1"
}