You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to score the wallets generated by the number of unique characters (case-insensitive) in the public key.
I can generate this with simple CPU-limited python code but it's far too slow.
acct, mnemonic = Account.create_with_mnemonic(num_words=24)
if len(set(acct.address.lower()))<9:
print(len(set(acct.address.lower())))
print(acct.address)
print(acct.key.hex())
print(mnemonic)
Is this something that's possible with GPU? where can I start? I can't myself seem to find any resources that can help me write something like this up.
The text was updated successfully, but these errors were encountered:
You could replace the current score_zero_bytes function here with something like this, which counts the number of characters then flips it, since you seem to want to make it lower. Note that this tool doesn't support mnemonics.
__device__ intscore_zero_bytes(Address a) {
uint32_t mask = 0;
#definecount_unique_chars(x) \
for (int i = 0; i < 8; i++) { \
mask |= (1 << (x & 15)); \
x >>= 4; \
}
count_unique_chars(a.a);
count_unique_chars(a.b);
count_unique_chars(a.c);
count_unique_chars(a.d);
count_unique_chars(a.e);
#undef get_unique_chars
return16 - __popc(mask);
}
I want to score the wallets generated by the number of unique characters (case-insensitive) in the public key.
I can generate this with simple CPU-limited python code but it's far too slow.
Is this something that's possible with GPU? where can I start? I can't myself seem to find any resources that can help me write something like this up.
The text was updated successfully, but these errors were encountered: