32#if defined(HAVE_ADDRESS_BOOK)
40#define TYPE_REGISTER_IDENTITY 0x2d
41#define TYPE_EDIT_CONTACT_NAME 0x2e
42#define TYPE_EDIT_IDENTIFIER 0x31
43#define TYPE_EDIT_SCOPE 0x32
44#define TYPE_PROVIDE_CONTACT 0x33
48#define GROUP_HANDLE_SIZE 64
50#define CONTACT_NAME_LENGTH 33
51#define SCOPE_LENGTH 33
52#define IDENTIFIER_MAX_LENGTH 80
104bolos_err_t
edit_identifier(uint8_t *buffer_in,
size_t buffer_in_length);
105bolos_err_t
edit_scope(uint8_t *buffer_in,
size_t buffer_in_length);
106bolos_err_t
provide_contact(uint8_t *buffer_in,
size_t buffer_in_length);
#define GID_SIZE
32-byte random group ID generated by the device
#define CONTACT_NAME_LENGTH
max 32 printable chars + null terminator
bolos_err_t provide_contact(uint8_t *buffer_in, size_t buffer_in_length)
Deliver a verified contact to the coin application.
bolos_err_t register_identity(uint8_t *buffer_in, size_t buffer_in_length)
Register a new identity.
bolos_err_t edit_scope(uint8_t *buffer_in, size_t buffer_in_length)
Edit the SCOPE of an existing Identity contact.
#define SCOPE_LENGTH
max 32 printable chars + null terminator
bolos_err_t edit_identifier(uint8_t *buffer_in, size_t buffer_in_length)
Edit the IDENTIFIER of an existing Identity contact.
bolos_err_t edit_contact_name(uint8_t *buffer_in, size_t buffer_in_length)
Edit the CONTACT_NAME of an existing Identity contact.
#define IDENTIFIER_MAX_LENGTH
blockchain address or public key, raw bytes
Data extracted from an Edit Identifier TLV payload.
uint8_t old_identifier[IDENTIFIER_MAX_LENGTH]
Identifier being replaced.
identity_t identity
Updated identity (identifier = new).
uint8_t old_identifier_len
Length of the old identifier.
Data extracted from an Edit Scope Name TLV payload.
char old_scope[SCOPE_LENGTH]
Scope being replaced.
identity_t identity
New identity (scope = new).
Data extracted from a Register Identity TLV payload.
blockchain_family_e blockchain_family
uint64_t chain_id
Mandatory when blockchain_family == FAMILY_ETHEREUM.
uint8_t gid[GID_SIZE]
Device-generated group ID (first 32B of group_handle).
uint8_t identifier[IDENTIFIER_MAX_LENGTH]
char contact_name[CONTACT_NAME_LENGTH]