Module coins_ledger::common

source ·
Expand description

APDU utilities.

Structs§

  • An APDU response is a wrapper around some response bytes. To avoid unnecessary clones, it exposes the retcode and response data as getters.
  • An APDU Command packet, used to issue instructions to the smart card. See wikipedia for additional format details
  • APDU data blob, limited to 255 bytes. For simplicity, this data does not support 3-byte APDU prefixes.

Enums§

  • APDU Response codes. These are the last 2 bytes of the APDU packet. Please see APDU and Ledger documentation for each error type.