1
0
mirror of https://github.com/PurpleI2P/i2pd-tools synced 2025-01-16 01:30:13 +00:00
i2pd-tools/vanity.hpp

29 lines
600 B
C++
Raw Normal View History

2017-08-09 16:55:08 +07:00
#pragma once
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include <openssl/rand.h>
#include "Crypto.h"
#include "Identity.h"
#include "common/key.hpp"
#include <thread>
#include <unistd.h>
#include <vector>
#include <mutex>
static std::mutex thread_mutex;
static i2p::data::SigningKeyType type;
2017-08-11 18:37:37 +07:00
//static i2p::data::PrivateKeys keys;
2017-08-09 16:55:08 +07:00
static bool finded=false;
2017-08-11 18:37:37 +07:00
static size_t MutateByte;
static uint32_t FindedNonce=0;
2017-08-09 16:55:08 +07:00
static uint8_t * KeyBuf;
2017-08-11 18:37:37 +07:00
//static uint8_t * PaddingBuf;
static unsigned long long hashescounter;
2017-08-15 00:51:31 +07:00
unsigned short count_cpu __attribute__((__mode__(QI))); // 1 byte
2017-08-10 10:07:38 +07:00