cryptnox-sdk-cpp 1.0.0
Platform-independent C++ core SDK for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
CryptnoxWallet.h File Reference

High-level API for interacting with a Cryptnox Hardware Wallet over NFC. More...

#include "platform_compat.h"
#include "CW_Defs.h"
#include "CW_Logger.h"
#include "CW_Platform.h"
#include "CW_SecureChannel.h"
#include "CW_Utils.h"
Include dependency graph for CryptnoxWallet.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CW_CardInfo
 Subset of the Cryptnox card info returned by APDU 0x80FA0000. More...
struct  CW_SignRequest
 Request parameters for CryptnoxWallet::sign. More...
struct  CW_SignResult
 Result of CryptnoxWallet::sign. More...
class  CryptnoxWallet
 High-level interface for interacting with a Cryptnox Hardware Wallet over NFC. More...

Macros

#define CW_CARD_NAME_MAX_LEN   (20U)
 Max name length stored on a Cryptnox card (per card spec).
#define CW_CARD_EMAIL_MAX_LEN   (60U)
 Max email length stored on a Cryptnox card (per card spec).

Detailed Description

High-level API for interacting with a Cryptnox Hardware Wallet over NFC.

Declares CryptnoxWallet, the main entry point for application code. The class wires together the four abstract adapters supplied by the host integration (NFC transport, crypto provider, logger, platform) and exposes the wallet operations: card connection, secure channel establishment, card info retrieval, PIN verification, transaction signing, and user-data writing.

See also
CW_NfcTransport
CW_CryptoProvider
CW_Logger
CW_Platform

Definition in file CryptnoxWallet.h.

Macro Definition Documentation

◆ CW_CARD_EMAIL_MAX_LEN

#define CW_CARD_EMAIL_MAX_LEN   (60U)

Max email length stored on a Cryptnox card (per card spec).

Definition at line 45 of file CryptnoxWallet.h.

Referenced by CryptnoxWallet::getCardInfo().

◆ CW_CARD_NAME_MAX_LEN

#define CW_CARD_NAME_MAX_LEN   (20U)

Max name length stored on a Cryptnox card (per card spec).

Definition at line 42 of file CryptnoxWallet.h.

Referenced by CryptnoxWallet::getCardInfo().