mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-06-06 14:26:23 +02:00
vanity
This commit is contained in:
parent
06f7eab4c6
commit
a65bd8fbaf
2 changed files with 13 additions and 4 deletions
10
vanity.hpp
10
vanity.hpp
|
@ -11,6 +11,9 @@
|
|||
#include <vector>
|
||||
#include <mutex>
|
||||
|
||||
|
||||
|
||||
|
||||
static std::mutex thread_mutex;
|
||||
static i2p::data::SigningKeyType type;
|
||||
//static i2p::data::PrivateKeys keys;
|
||||
|
@ -24,5 +27,8 @@ static uint8_t * KeyBuf;
|
|||
|
||||
//static uint8_t * PaddingBuf;
|
||||
static unsigned long long hashescounter;
|
||||
unsigned short count_cpu __attribute__((__mode__(QI))); // 1 byte
|
||||
|
||||
#ifdef MODES
|
||||
unsigned short count_cpu __attribute__((__mode__(QI))); // 1 byte i think don't usefful
|
||||
#else
|
||||
unsigned short count_cpu;
|
||||
#endif
|
||||
|
|
|
@ -67,8 +67,11 @@ For idea and example ^-^
|
|||
Orignal is sensei of crypto ;)
|
||||
*/
|
||||
std::cout << "Thread " << id_thread << " binded" << std::endl;
|
||||
|
||||
uint8_t b[391]; __attribute__((__mode__(SI))); // 4 byte == 32 bits, not usefull. i think.
|
||||
#ifdef MODES
|
||||
uint8_t b[391] __attribute__((__mode__(SI))); // 4 byte == 32 bits, not usefull. i think.
|
||||
#else
|
||||
uint8_t b[391];
|
||||
#endif
|
||||
memcpy (b, buf, 391);
|
||||
|
||||
int len = strlen (prefix);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue