cryptnox-sdk-arduino 1.0.0
Arduino library 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.

Examples
BasicUsage.ino, Sign.ino, and UsdcSigning.ino.

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

◆ signature

uint8_t CW_SignResult::signature[CW_RAW_SIGNATURE_SIZE]

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

Examples
BasicUsage.ino, Sign.ino, and UsdcSigning.ino.

Definition at line 117 of file CryptnoxWallet.h.

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


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