Embedded SDK
Embedded SDK
Loading...
Searching...
No Matches
identity_edit_contact_name.c File Reference

Edit Contact Name flow (P1=0x02, struct type 0x2e) More...

#include <string.h>
#include "os_utils.h"
#include "os_apdu.h"
#include "status_words.h"
#include "tlv_library.h"
#include "buffer.h"
#include "bip32.h"
#include "address_book.h"
#include "address_book_entrypoints.h"
#include "address_book_crypto.h"
#include "address_book_common.h"
#include "identity.h"
#include "io.h"
#include "nbgl_use_case.h"
Include dependency graph for identity_edit_contact_name.c:

Go to the source code of this file.

Detailed Description

Edit Contact Name flow (P1=0x02, struct type 0x2e)

Allows changing the CONTACT_NAME of an existing Identity contact. Because HMAC_PROOF covers only (gid, name), the wallet does not need to transmit the identifier, scope, or network fields.

Flow:

  1. Parse TLV payload (gid + new_name + previous_name + derivation_path + hmac_proof)
  2. Verify HMAC_PROOF over (gid, previous_name)
  3. Display UI: old name → new name
  4. On confirm: compute new HMAC_PROOF over (gid, new_name) and send

Active under HAVE_ADDRESS_BOOK.

Definition in file identity_edit_contact_name.c.