1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

move types.h and ec stuff to "ec" subdirectory.

This commit is contained in:
Henrik Hautakoski 2020-01-30 08:41:30 +01:00
parent 8630f5c255
commit c7802b2e56
10 changed files with 14 additions and 15 deletions

View file

@ -18,7 +18,7 @@ set (PROGRAM_EXE ${CMAKE_PROJECT_NAME})
set (PROGRAM_SOURCE
src/string.cpp
src/ec.cpp
src/ec/openssl.cpp
src/base58.cpp
src/checksum.cpp
src/WIF.cpp

View file

@ -25,7 +25,7 @@
#define WIF_H
#include <string>
#include "types.h"
#include "ec/types.h"
std::string wif_priv_encode(ec_privkey_t priv);

View file

@ -22,7 +22,7 @@
* SOFTWARE.
*/
#include <chrono>
#include "ec.h"
#include "ec/generate.h"
#include "benchmark.h"
using std::chrono::steady_clock;

View file

@ -21,8 +21,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef EC_H
#define EC_H
#ifndef EC_GENERATE_H
#define EC_GENERATE_H
#include "types.h"
@ -32,4 +32,4 @@
*/
int ec_generate_key(struct ec_keypair *pair);
#endif /* EC_H */
#endif /* EC_GENERATE_H */

View file

@ -24,7 +24,7 @@
#include <openssl/ec.h>
#include <openssl/bn.h>
#include <openssl/hmac.h>
#include "ec.h"
#include "generate.h"
static int ec_generate_pair(unsigned char *priv, unsigned char *pub) {

View file

@ -21,8 +21,8 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifndef TYPES_H
#define TYPES_H
#ifndef EC_TYPES_H
#define EC_TYPES_H
#include <array>
@ -35,7 +35,6 @@
*/
#define EC_PUBKEY_SIZE (32 + 1)
typedef std::array<unsigned char, EC_PRIVKEY_SIZE> ec_privkey_t;
typedef std::array<unsigned char, EC_PUBKEY_SIZE> ec_pubkey_t;
@ -44,4 +43,4 @@ struct ec_keypair {
ec_pubkey_t pub;
};
#endif /* TYPES_H */
#endif /* EC_TYPES_H */

View file

@ -22,7 +22,7 @@
* SOFTWARE.
*/
#include <string>
#include "ec.h"
#include "ec/generate.h"
#include "key_search_helpers.h"
#include "key_search.h"

View file

@ -25,7 +25,7 @@
#define KEY_SEARCH_HELPERS_H
#include "string.h"
#include "types.h"
#include "ec/types.h"
struct key_result {
size_t pos; // position where the word was found.

View file

@ -25,7 +25,7 @@
#include <thread>
#include <mutex>
#include <vector>
#include "ec.h"
#include "ec/generate.h"
#include "key_search_helpers.h"
#include "key_search.h"

View file

@ -28,7 +28,7 @@
#include <cstring>
#include "string.h"
#include "WIF.h"
#include "ec.h"
#include "ec/generate.h"
#include "key_search.h"
#include "benchmark.h"