module Keybase::Core

GET dump/all.json

GET dump/latest.json

POST /key/add.json public_key: “—–BEGIN PGP PUBLIC…” private_key: “hKRib2R5gqRwcml2gqRkY…” is_primary: true

POST /key/revoke.json revocation_type: 0 kid: “a140c70404a13370f7…”

GET /getsalt.json?email_or_username=EMAIL_OR_USERNAME

POST /login.json email_or_username: “chris” hmac_pwh: “38902fe098f…” login_session: “lgHZIwfee99…”

POST /session/killall.json

POST sig/post_auth.json sig : “—– BEGIN PGP MESSAGE —– …” email_or_username : “maxtaco”

GET /user/lookup.json?username=USERNAME

Public Class Methods

dump_all() click to toggle source

Retrieve the dump history from Keybase

@return [[Keybase::Dump]] a collection of all Keybase dumps

# File lib/keybase-core.rb, line 41
def self.dump_all
  Dump.all
end
dump_latest() click to toggle source

Retrieve the latest dump from Keybase

@return [Keybase::Dump] latest Keybase dump

# File lib/keybase-core.rb, line 48
def self.dump_latest
  Dump.latest
end
lookup(username) click to toggle source

Lookup a user on Keybase

@param [String] username the username of the user you are searching for @raise [Keybase::UserNotFoundError] if the user is not found @raise [Keybase::InputError] if the username is empty or invalid @return [Keybase::Model::User] the user, if they exist

# File lib/keybase-core.rb, line 34
def self.lookup(username)
  User.lookup(username)
end

Private Class Methods

errors() click to toggle source
# File lib/keybase-core/error.rb, line 28
def self.errors
  {
    100 => InputError,
    202 => BadSessionError,
    205 => UserNotFoundError,
    204 => BadPasswordError,
    222 => CSRFVerificationError
  }
end