Module: SelfSDK

Defined in:
lib/selfsdk.rb,
lib/log.rb,
lib/client.rb,
lib/crypto.rb,
lib/ntptime.rb,
lib/sources.rb,
lib/storage.rb,
lib/messaging.rb,
lib/chat/group.rb,
lib/jwt_service.rb,
lib/chat/message.rb,
lib/authenticated.rb,
lib/messages/base.rb,
lib/messages/chat.rb,
lib/messages/fact.rb,
lib/services/auth.rb,
lib/services/chat.rb,
lib/services/docs.rb,
lib/services/facts.rb,
lib/services/voice.rb,
lib/signature_graph.rb,
lib/chat/file_object.rb,
lib/messages/generic.rb,
lib/messages/message.rb,
lib/services/identity.rb,
lib/source_definition.rb,
lib/messages/chat_join.rb,
lib/services/messaging.rb,
lib/services/requester.rb,
lib/messages/fact_issue.rb,
lib/messages/voice_busy.rb,
lib/messages/voice_stop.rb,
lib/messages/attestation.rb,
lib/messages/chat_invite.rb,
lib/messages/chat_remove.rb,
lib/messages/voice_setup.rb,
lib/messages/voice_start.rb,
lib/messages/chat_message.rb,
lib/messages/fact_request.rb,
lib/messages/voice_accept.rb,
lib/messages/fact_response.rb,
lib/messages/voice_summary.rb,
lib/messages/chat_message_read.rb,
lib/messages/connection_request.rb,
lib/messages/document_sign_resp.rb,
lib/messages/connection_response.rb,
lib/messages/chat_message_delivered.rb

Overview

Namespace for classes and modules that handle SelfSDK gem

Defined Under Namespace

Modules: Chat, Messages, Services Classes: App, Authenticated, Crypto, JwtService, Key, MessagingClient, Operation, RestClient, SignatureGraph, Sources, Storage, StorageMigrator, Time, WebsocketClient

Constant Summary collapse

ACTION_ADD =
"key.add"
ACTION_REVOKE =
"key.revoke"
KEY_TYPE_DEVICE =
"device.key"
KEY_TYPE_RECOVERY =
"recovery.key"
SOURCE_DATA =
{
	"sources" => {
		"user_specified" => [
			"document_number",
			"display_name",
			"email_address",
			"unverified_phone_number",
			"location"
		],
		"passport" => [
			"photo",
			"document_number",
			"surname",
			"given_names",
			"date_of_birth",
			"date_of_expiration",
			"sex",
			"nationality",
			"country_of_issuance"
		],
		"driving_license" => [
			"document_number",
			"surname",
			"given_names",
			"date_of_birth",
			"date_of_issuance",
			"date_of_expiration",
			"address",
			"issuing_authority",
			"place_of_birth"
		],
		"identity_card" => [
			"document_number",
			"surname",
			"given_names",
			"date_of_birth",
			"date_of_expiration",
			"sex",
			"nationality",
			"country_of_issuance"
		],
		"live" => [
			"selfie_verification"
		]
	}
}

Class Attribute Summary collapse

Class Attribute Details

.loggerObject



11
12
13
14
15
16
17
# File 'lib/log.rb', line 11

def logger
  @logger ||= Logger.new('/dev/null')

  #@logger ||= ::Logger.new($stdout).tap do |log|
  #  log.progname = name
  #end
end