keybase-proofs
Version:
Publicly-verifiable proofs of identity
194 lines (188 loc) • 4.32 kB
JavaScript
// Generated by IcedCoffeeScript 108.0.11
(function() {
var constants, d, k, v, _ref;
exports.constants = constants = {
tags: {
sig: "signature"
},
versions: {
sig_v1: 1,
sig_v2: 2,
sig_v3: 3
},
sig_prefixes: {
3: "Keybase-Sigchain-3"
},
sig_types: {
generic_binding: "generic_binding",
web_service_binding: "web_service_binding",
track: "track",
auth: "auth",
untrack: "untrack",
revoke: "revoke",
pgp_update: "pgp_update",
update_passphrase_hash: "update_passphrase_hash",
update_settings: "update_settings",
cryptocurrency: "cryptocurrency",
announcement: "announcement",
subkey: "subkey",
sibkey: "sibkey",
device: "device",
eldest: "eldest",
per_user_key: "per_user_key",
wallet: {
stellar: "wallet.stellar"
},
team: {
index: "team.index",
root: "team.root",
new_subteam: "team.new_subteam",
change_membership: "team.change_membership",
rotate_key: "team.rotate_key",
leave: "team.leave",
subteam_head: "team.subteam_head",
rename_subteam: "team.rename_subteam",
invite: "team.invite",
rename_up_pointer: "team.rename_up_pointer",
delete_root: "team.delete_root",
delete_subteam: "team.delete_subteam",
delete_up_pointer: "team.delete_up_pointer",
kbfs: "team.kbfs",
settings: "team.settings",
bot_settings: "team.bot_settings"
},
wot: {
vouch: "wot.vouch",
react: "wot.react"
}
},
sig_types_v2: {
eldest: 1,
web_service_binding: 2,
track: 3,
untrack: 4,
revoke: 5,
cryptocurrency: 6,
announcement: 7,
device: 8,
web_service_binding_with_revoke: 9,
cryptocurrency_with_revoke: 10,
sibkey: 11,
subkey: 12,
pgp_update: 13,
per_user_key: 14,
team: {
index: 32,
root: 33,
new_subteam: 34,
change_membership: 35,
rotate_key: 36,
leave: 37,
subteam_head: 38,
rename_subteam: 39,
invite: 40,
rename_up_pointer: 41,
delete_root: 42,
delete_subteam: 43,
delete_up_pointer: 44,
settings: 46,
kbfs: 47,
bot_settings: 48
},
wallet: {
stellar: 15
},
wot: {
vouch: 16,
vouch_with_revoke: 17,
react: 18
}
},
sig_types_v3: {
user: {
peg: 65
},
team: {
rotate_key: 81
}
},
appkey_derivation_version: {
"default": 0,
xor: 1,
hmac: 2
},
ptk_types: {
reader: 0
},
proof_types: {
none: 0,
keybase: 1,
twitter: 2,
github: 3,
reddit: 4,
coinbase: 5,
hackernews: 6,
bitbucket: 7,
facebook: 8,
generic_social: 9,
generic_web_site: 1000,
dns: 1001,
pgp: 1002
},
expire_in: 60 * 60 * 24 * 365 * 5,
http_timeout: 15 * 1000,
short_id_bytes: 27,
shortest_pgp_signature: 100,
critical_clock_skew_secs: 65 * 60,
seq_types: {
NONE: 0,
PUBLIC: 1,
PRIVATE: 2,
SEMIPRIVATE: 3,
TEAM_HIDDEN: 17
},
v_codes: {
NONE: 0,
OK: 1,
LOCAL: 2,
FOUND: 3,
BASE_ERROR: 100,
HOST_UNREACHABLE: 101,
PERMISSION_DENIED: 103,
FAILED_PARSE: 106,
DNS_ERROR: 107,
AUTH_FAILED: 108,
HTTP_429: 129,
HTTP_500: 150,
TIMEOUT: 160,
BASE_HARD_ERROR: 200,
NOT_FOUND: 201,
CONTENT_FAILURE: 202,
BAD_USERNAME: 203,
BAD_REMOTE_ID: 204,
TEXT_NOT_FOUND: 205,
BAD_ARGS: 206,
CONTENT_MISSING: 207,
TITLE_NOT_FOUND: 208,
SERVICE_ERROR: 209,
TOR_SKIPPED: 210,
TOR_INCOMPATIBLE: 211,
HTTP_300: 230,
HTTP_400: 240,
HTTP_OTHER: 260,
EMPTY_JSON: 270,
INVALID_JSON: 271,
DELETED: 301,
SERVICE_DEAD: 302,
BAD_SIGNATURE: 303
},
user_agent: "keybase-proofs/"
};
d = {};
_ref = constants.proof_types;
for (k in _ref) {
v = _ref[k];
d[v] = k;
}
exports.proof_type_to_string = d;
}).call(this);