|
cryptnox-sdk-cpp 1.0.0
Platform-independent C++ core SDK for Cryptnox Hardware Wallet
|
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 |
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.
|
inline |
Construct a default-failure result.
Definition at line 121 of file CryptnoxWallet.h.
| 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().
| 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().