20210401, 13:36  #1 
20121_{8} Posts 
Do easy to factor semiprimes exist?
I am working on a "cryptocurrency"like proof of work that uses factoring large numbers as a proof of work. You can review the archive of it here if you want: MODERATOR NOTE: link removed
Basically a user generates a private key, then hashes it using some algorithm like sha2 or sha3 to get a public key. They then hash this public key with something like skien1024 to get a large random number (and truncate to a given acceptable length). They then provide a prime factor of this number that is between 7/16ths and 1/2 the length of the number. So for the network to verify the PoW, they do a primality check of the factor, and divide the large number by the proposed factor. If it checks out, it is a valid proof of work (and of course the person who generated the challenge is the only one who can spend it because they are the only one that knows the private key). We would start around 140 or 150 digit numbers so people can complete a proof of work in about a week with a decent computer. Is there any potential attack vectors to this method? My thought is one possibility is that someone generates mass amounts of numbers looking for one that is "easy to factor". But my gut tells me that if there exists a prime factor in the number that is between 7/16th and 1/2 of the digit length of the number, then it is not easy to factor generally. Also one would need to factor it to determine whether it is easy to factor, correct? Of course you can do checks to the number like primality checks but my point is, if it does indeed contain a prime factor of said length, then no "testing" would be able to determine if this number with said prime factor is easier than another number with said prime factor without factoring them, correct? Another question I have is; could factoring algorithms be modified to do this challenge significantly faster than a typical GNFS or RSA algorithm, since only 1 factor is needed, or would you just run it through our typical programs and see if it returns a factor of required length? Thanks. Last fiddled with by Dr Sardonicus on 20210401 at 14:01 
20210401, 14:12  #2 
Aug 2006
5,987 Posts 
If large enough quantum computers come to pass, then all numbers of a certain size will be easy to factor. This size will depend on various factors of the quantum computer, but in the worst case (for you  best case for the person factoring) an nqubit computer can factor a number up to 2^(n1) or so.
There's a huge speedup to be gained if a person is factoring many numbers at once, so your security margin has to be wide enough to account for this. Integer factorization is an area of active research, so you should be prepared for major advances that could reduce your security margin at any time. I would not base a cryptocurrency on integer factorization, there are just too many risks. (Selfishly, I hope you do  it would increase the incentive to do research in this area!) 
20210401, 14:25  #3  
Aug 2006
5,987 Posts 
Quote:


20210401, 19:13  #4 
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
3·17·227 Posts 
Trivial question to answer.
For The Codebook challenge back in 1999 I created a RSA modulus which could have been factored much more easily than the GNFS actually used to solve the problem. My evil sense of humour led me to produce primes which were just slightly larger than I thought that anyone would use P \pm 1 to discover. Last fiddled with by xilman on 20210401 at 19:14 Reason: Italicise 
Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Frobenius and semiprime testing  paulunderwood  Number Theory Discussion Group  12  20181109 07:07 
find very easy twin prime in the infamy twin primes  hal1se  Miscellaneous Math  13  20181105 16:34 
Semiprime factorization conjecture  Alberico Lepore  Alberico Lepore  7  20180216 08:27 
Does God exist?  mfgoode  Soap Box  194  20070118 20:49 
Semiautomated P1 testing  GP2  Marin's Mersennearies  2  20030929 19:01 