Class contact

#include <keychain/cache/contact.hpp>

Namespace: keychain

Inheritance: facadecontact

Description

contact represents the (public) cryptographic identity of an external persona — a persona whose private keys are managed in a database or device external to the database managing the keys for the current persona.

The distinction between a persona and a contact is that a gateway creates a persona locally whereas a contact is created by another device.

contact objects are not constructed by the user directly. They are created through the gateway.

In fact, contact is a snapshot view of the underlying object at the time it is created or requested, because contact has no reference to the gateway or blockchain at all. This means developers should always refresh their view of the available contacts with gateway#get_contacts before acting on the object, as the persona_state may have changed.

Since: v2.0

Methods inherited from class facade

get_id, get_name, get_status, get_sub_name, get_uri, is_null