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

Edit Ledger Account flow (P1=0x12, struct type 0x30) More...

#include <string.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 "ledger_account.h"
#include "io.h"
#include "nbgl_use_case.h"
Include dependency graph for ledger_account_edit.c:

Go to the source code of this file.

Detailed Description

Edit Ledger Account flow (P1=0x12, struct type 0x30)

Flow:

  1. Receive fully assembled payload (multi-chunk reassembly handled by address_book.c)
  2. Parse TLV payload (previous_name + new_name + derivation_path + chain_id + blockchain_family + hmac_proof)
  3. Verify HMAC proof of the previous registration
  4. Display UI: old name → new name
  5. On confirm: compute new HMAC Proof of Registration and send to host

Active under HAVE_ADDRESS_BOOK_LEDGER_ACCOUNT.

Definition in file ledger_account_edit.c.