iceland2k14/secp256k1

pls Add SHA256 iteration

Noname400 opened this issue · 2 comments

Good afternoon, please add to the DLL possibly recalculating SHA256 as many times as needed.
e.g. get_sha256(input_bytes, iteration)
get_sha256(b'a', 2048)

OK. Will see about it.
Although it is possible to just write a python wrapper function without touching dll, in case.

def bin_slowsha(string):
string = from_string_to_bytes(string)
orig_input = string
for i in range(100000):
string = hashlib.sha256(string + orig_input).digest()
return string