iceland2k14 / kangaroo

Find PrivateKey of corresponding Pubkey(s) using Pollard Kangaroo algo
MIT License
56 stars 29 forks source link

question. #5

Open Noname400 opened 2 years ago

Noname400 commented 2 years ago

Good afternoon. I hope you don't mind using your product as part of my project. Of course with reference to you. but it is very difficult to combine the work of python and data output from dll. whether it is possible to make that the data output is controlled or output to a separate variable, which is preferable, or even turned off. in fact, I only need to know the speed. I will be grateful for your help.

and thanks again for your hard work. you help make Python faster, and the work of many programmers is easier

iceland2k14 commented 2 years ago

Ok. No problem in reference. Regarding the data output is currently controlled by dll itself but i can open it for customization from python side during the call function. Let me know which kind of display options will be ok. Also i added a PreCompute branch which has some useful functions for the search although no chnge from display and no linux yet.

Noname400 commented 2 years ago

How can I control the output from the dll speed parameter. ? to get it into a variable and output it in a controlled manner to the console.

Noname400 commented 2 years ago

I can hope for a positive decision ?

iceland2k14 commented 2 years ago

Decision is Positive but will be delayed. My relative in ICU.

Noname400 commented 2 years ago

Я понимаю. Сочувствую вам. Я подожду сколько нужно. Спасибо

iceland2k14 commented 2 years ago

@Noname400 https://github.com/iceland2k14/kangaroo/tree/dispset

Noname400 commented 2 years ago

I'm sorry, I probably didn't express myself correctly. you have done almost everything you really wanted to integrate your script into another project. but your dll all the same draws the conclusion itself and it is impossible to control this by a third-party project. can it be done like this: pvk_found, outer = run_cpu_kangaroo(tame_update_file, 0, range_en-range_st, dp, ncore, mx, rpub, dispset) where outer is the output of the dll

Noname400 commented 2 years ago

in this case, it will be possible to display information from the dll in any place and at any desired time

iceland2k14 commented 2 years ago

The problem to get return value in outer will be that this function run_cpu_kangaroo has to end. Currently it only ends when range of 72057 trillion is complete and controlled by -n. The display itself is set every 2 sec. So if we end this function every 2 sec, then we have to call it every time in a loop and so the time to prepare everything will be hugely diminish the advantage of this algo.