ryosan-470 / factordb-python

FactorDB client library with Python
MIT License
50 stars 9 forks source link

API to submit factors to the database #12

Open ReverseControl opened 2 years ago

ReverseControl commented 2 years ago

Could you add an interface to submit a number and its factors? There is a blockchain (FACT0RN) that uses integer factorization as its proof of work and it would be nice to use this python library to submit factors of large integers as they are factored; there is a large number of 230+ bit integers that are factored 24/7.

ryosan-470 commented 2 years ago

I can't imagine what you need. Would you explain to me more details with pseudocode? I'm not maintaining this codebase now so you can submit your improvements using PR. I welcome your patch.

ReverseControl commented 2 years ago

So, for example, say in the course of mining we factor 15 into 3 and 5. I would like an RPC call to submit 15 with its factor 3 and 5, just like I would be able to do from the website in GUI form. That way if we factor say 10 million semiprimes in a day in the course of mining, we could submit them all to the factor database. @ryosan-470

We could restrict it to just semiprimes, but we could have some other filter to submit numbers. It might get in the way of efficiency for mining if we do submit all of them, but we might submit "interesting" ones.

ryosan-470 commented 8 months ago

Nice idea. But now I don't maintain this codebase. Could you submit your code or fork this project?