add confirmation ID generator, fix server.cpp (#14)

* add confirmation ID generator, fix server.cpp

* made an oopsie

* Update README.md

* Remove unused platform-dependent code
This commit is contained in:
WitherOrNot
2023-06-03 10:14:11 -04:00
committed by GitHub
parent 728bf2a781
commit e9a10e2882
5 changed files with 859 additions and 4 deletions

View File

@@ -33,6 +33,15 @@
#define FIELD_BITS_2003 512
#define FIELD_BYTES_2003 64
// Confirmation ID generator constants
#define SUCCESS 0
#define ERR_TOO_SHORT 1
#define ERR_TOO_LARGE 2
#define ERR_INVALID_CHARACTER 3
#define ERR_INVALID_CHECK_DIGIT 4
#define ERR_UNKNOWN_VERSION 5
#define ERR_UNLUCKY 6
// Type definitions
typedef uint8_t BYTE;
typedef uint16_t WORD;