Nano cryptocurrency C library with P2PoW/DPoW support
1.0.0
errors.h
Go to the documentation of this file.
1
//mon apr 26 20:56:00 -03 2021
2
#ifndef ERRORS_H
3
#define ERRORS_H
4
8
#define ERROR_SUCCESS 0
9
15
#define ERROR_GEN_TOKEN_NO_RAND_NUM_GEN 3858
16
17
//nano_base_32_2_hex
22
#define ERROR_INVALID_NANO_ADDRESS_VERIFY_CHKSUM 23
23
28
enum
f_nano_account_or_pk_string_to_pk_util_err_t
{
29
NANO_ACCOUNT_TO_PK_OK
=0,
30
NANO_ACCOUNT_TO_PK_OVFL
=8100,
31
NANO_ACCOUNT_TO_PK_NULL_STRING
,
32
NANO_ACCOUNT_WRONG_PK_STR_SZ
,
33
NANO_ACCOUNT_WRONG_HEX_STRING
,
34
NANO_ACCOUNT_BASE32_CONVERT_ERROR
,
35
NANO_ACCOUNT_TO_PK_WRONG_ACCOUNT_LEN
36
};
37
38
//valid_raw_balance
43
#define INVALID_RAW_BALANCE 8893
44
45
//f_nano_seed_to_bip39
50
#define CANT_OPEN_DICTIONARY_FILE 2580
51
56
#define MISSING_PASSWORD 7153
57
62
#define EMPTY_PASSWORD 7169
63
68
#define WRONG_PASSWORD 7167
69
74
#define ERROR_25519_IS_NOT_CANONICAL_OR_HAS_NOT_SMALL_ORDER 12621
75
80
#define ERROR_NANO_BLOCK 13014
81
86
#define ERROR_P2POW_BLOCK 13015
87
92
#define ERROR_BRAINWALLET_ALLOW_MODE_NOT_ACCEPTED 0x3C00
93
98
#define ERROR_MISSING_BRAINWALLET 0x3C01
99
104
#define ERROR_MISSING_SALT 0x3C02
105
#endif
NANO_ACCOUNT_WRONG_PK_STR_SZ
Definition:
errors.h:32
NANO_ACCOUNT_BASE32_CONVERT_ERROR
Definition:
errors.h:34
NANO_ACCOUNT_TO_PK_OK
Definition:
errors.h:29
NANO_ACCOUNT_TO_PK_OVFL
Definition:
errors.h:30
NANO_ACCOUNT_TO_PK_NULL_STRING
Definition:
errors.h:31
NANO_ACCOUNT_WRONG_HEX_STRING
Definition:
errors.h:33
f_nano_account_or_pk_string_to_pk_util_err_t
f_nano_account_or_pk_string_to_pk_util_err_t
Nano account or public key string error enumerator.
Definition:
errors.h:28
NANO_ACCOUNT_TO_PK_WRONG_ACCOUNT_LEN
Definition:
errors.h:35
include
errors.h
Generated by
1.8.13