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

Result of CryptnoxWallet::sign. More...

#include <CryptnoxWallet.h>

Public Member Functions

 CW_SignResult ()
 Construct a default-failure result.

Public Attributes

uint8_t signature [CW_RAW_SIGNATURE_SIZE]
uint8_t errorCode

Detailed Description

Result of CryptnoxWallet::sign.

The error code is checked first: when it is CW_OK the signature is valid raw (r || s) on secp256k1 / secp256r1 (depending on the keyType used). On any other code signature is left zero.

Definition at line 116 of file CryptnoxWallet.h.

Constructor & Destructor Documentation

◆ CW_SignResult()

CW_SignResult::CW_SignResult ( )
inline

Construct a default-failure result.

Definition at line 121 of file CryptnoxWallet.h.

References CW_NOK, errorCode, and signature.

Member Data Documentation

◆ errorCode

uint8_t CW_SignResult::errorCode

CW_OK on success, otherwise a CW_SIGN_* / CW_INVALID_SESSION code.

Definition at line 118 of file CryptnoxWallet.h.

Referenced by CW_SignResult(), CryptnoxWallet::extractRawSignature(), CryptnoxWallet::sendSignApdu(), CryptnoxWallet::sign(), and CryptnoxWallet::validateSignRequest().

◆ signature

uint8_t CW_SignResult::signature[CW_RAW_SIGNATURE_SIZE]

Raw 64-byte signature: r[32] || s[32]. Zero on failure.

Definition at line 117 of file CryptnoxWallet.h.

Referenced by CW_SignResult(), CryptnoxWallet::extractRawSignature(), and CryptnoxWallet::sign().


The documentation for this struct was generated from the following file: