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

Register Ledger Account flow (P1=0x11, struct type 0x2f) More...

#include <string.h>
#include "os_utils.h"
#include "os_apdu.h"
#include "os_pic.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_register.c:

Go to the source code of this file.

Detailed Description

Register Ledger Account flow (P1=0x11, struct type 0x2f)

Flow:

  1. Parse TLV payload (account name + derivation path + chain ID + blockchain family)
  2. Coin-app validation: handle_check_register_ledger_account()
  3. Display UI: account name + derivation path
  4. On confirm: compute HMAC Proof of Registration and send to host

Active under HAVE_ADDRESS_BOOK_LEDGER_ACCOUNT.

Definition in file ledger_account_register.c.