Nano cryptocurrency C library with P2PoW/DPoW support  1.0.0
errors.h File Reference

Go to the source code of this file.

Macros

#define ERROR_SUCCESS   0
 
#define ERROR_GEN_TOKEN_NO_RAND_NUM_GEN   3858
 
#define ERROR_INVALID_NANO_ADDRESS_VERIFY_CHKSUM   23
 
#define INVALID_RAW_BALANCE   8893
 
#define CANT_OPEN_DICTIONARY_FILE   2580
 
#define MISSING_PASSWORD   7153
 
#define EMPTY_PASSWORD   7169
 
#define WRONG_PASSWORD   7167
 
#define ERROR_25519_IS_NOT_CANONICAL_OR_HAS_NOT_SMALL_ORDER   12621
 
#define ERROR_NANO_BLOCK   13014
 
#define ERROR_P2POW_BLOCK   13015
 
#define ERROR_BRAINWALLET_ALLOW_MODE_NOT_ACCEPTED   0x3C00
 
#define ERROR_MISSING_BRAINWALLET   0x3C01
 
#define ERROR_MISSING_SALT   0x3C02
 

Enumerations

enum  f_nano_account_or_pk_string_to_pk_util_err_t {
  NANO_ACCOUNT_TO_PK_OK =0, NANO_ACCOUNT_TO_PK_OVFL =8100, NANO_ACCOUNT_TO_PK_NULL_STRING, NANO_ACCOUNT_WRONG_PK_STR_SZ,
  NANO_ACCOUNT_WRONG_HEX_STRING, NANO_ACCOUNT_BASE32_CONVERT_ERROR, NANO_ACCOUNT_TO_PK_WRONG_ACCOUNT_LEN
}
 

Macro Definition Documentation

◆ CANT_OPEN_DICTIONARY_FILE

#define CANT_OPEN_DICTIONARY_FILE   2580

Dictionary file not found or filesystem error.

Definition at line 50 of file errors.h.

◆ EMPTY_PASSWORD

#define EMPTY_PASSWORD   7169

Empty password error.

Definition at line 62 of file errors.h.

◆ ERROR_25519_IS_NOT_CANONICAL_OR_HAS_NOT_SMALL_ORDER

#define ERROR_25519_IS_NOT_CANONICAL_OR_HAS_NOT_SMALL_ORDER   12621

Error in Elliptic Curve Ed25519: Is not canonical or has small order.

Definition at line 74 of file errors.h.

◆ ERROR_BRAINWALLET_ALLOW_MODE_NOT_ACCEPTED

#define ERROR_BRAINWALLET_ALLOW_MODE_NOT_ACCEPTED   0x3C00

Definition at line 92 of file errors.h.

◆ ERROR_GEN_TOKEN_NO_RAND_NUM_GEN

#define ERROR_GEN_TOKEN_NO_RAND_NUM_GEN   3858

No random number generation.

Add one to myNanoEmbedded library.

See also
f_random_attach()

Definition at line 15 of file errors.h.

◆ ERROR_INVALID_NANO_ADDRESS_VERIFY_CHKSUM

#define ERROR_INVALID_NANO_ADDRESS_VERIFY_CHKSUM   23

Nano address checksum invalid.

Definition at line 22 of file errors.h.

◆ ERROR_MISSING_BRAINWALLET

#define ERROR_MISSING_BRAINWALLET   0x3C01

Definition at line 98 of file errors.h.

◆ ERROR_MISSING_SALT

#define ERROR_MISSING_SALT   0x3C02

Definition at line 104 of file errors.h.

◆ ERROR_NANO_BLOCK

#define ERROR_NANO_BLOCK   13014

Nano block error.

Definition at line 80 of file errors.h.

◆ ERROR_P2POW_BLOCK

#define ERROR_P2POW_BLOCK   13015

Nano P2PoW block error.

Definition at line 86 of file errors.h.

◆ ERROR_SUCCESS

#define ERROR_SUCCESS   0

Error success.

Most of the myNanoEmbedded functions returns ERROR_SUCCESS when execution success.

Definition at line 8 of file errors.h.

◆ INVALID_RAW_BALANCE

#define INVALID_RAW_BALANCE   8893

Invalid raw balance error.

Definition at line 43 of file errors.h.

◆ MISSING_PASSWORD

#define MISSING_PASSWORD   7153

Missing password error.

Definition at line 56 of file errors.h.

◆ WRONG_PASSWORD

#define WRONG_PASSWORD   7167

Wrong password error.

Definition at line 68 of file errors.h.

Enumeration Type Documentation

◆ f_nano_account_or_pk_string_to_pk_util_err_t

Nano account or public key string error enumerator.

Enumerator
NANO_ACCOUNT_TO_PK_OK 
NANO_ACCOUNT_TO_PK_OVFL 
NANO_ACCOUNT_TO_PK_NULL_STRING 
NANO_ACCOUNT_WRONG_PK_STR_SZ 
NANO_ACCOUNT_WRONG_HEX_STRING 
NANO_ACCOUNT_BASE32_CONVERT_ERROR 
NANO_ACCOUNT_TO_PK_WRONG_ACCOUNT_LEN 

Definition at line 28 of file errors.h.