Bitcoin Forum
June 15, 2024, 06:32:29 AM *
News: Voting for pizza day contest
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How about inventing a truly CPU-friendly hash function?  (Read 664 times)
abs (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
November 27, 2012, 03:06:01 AM
 #1

Those of you who might be thinking about starting an alt cryptocurrency, why not consider an idea like this for a hash function:

1. Calculate a standard hash function like SHA256. Then take the result, split it into chunks, and apply something like this to each chunk:

2. Calculate the natural logarithm of the input.

3. Take, say, the 4th through 10th digit of the result and use this value to decide among many different candidate functions for step 4.

for example:

4.0. If the value from step 3 is 0, then calculate ln(ln(x)), take digits 3 to 8 of the result and xor this with the original input.
4.1. If the value from step 3 is 1, then calculate ln((x+sqrt(x+5))), take digits 2 to 7 of the result and add this to the original input.
etc (potentially tens of thousands of different functions for step 4)

5. repeat a few dozen times

Let's see how GPUs do on that.

Just a thought.
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4658



View Profile
November 27, 2012, 03:15:54 AM
 #2

Those of you who might be thinking about starting an alt cryptocurrency, why not consider an idea like this for a hash function:

1. Calculate a standard hash function like SHA256. Then take the result, split it into chunks, and apply something like this to each chunk:

2. Calculate the natural logarithm of the input.

3. Take, say, the 4th through 10th digit of the result and use this value to decide among many different candidate functions for step 4.

for example:

4.0. If the value from step 3 is 0, then calculate ln(ln(x)), take digits 3 to 8 of the result and xor this with the original input.
4.1. If the value from step 3 is 1, then calculate ln((x+sqrt(x+5))), take digits 2 to 7 of the result and add this to the original input.
etc (potentially tens of thousands of different functions for step 4)

5. repeat a few dozen times

Let's see how GPUs do on that.

Just a thought.
GPU's may suck at it, but if the currency catches on and becomes popular, then someone will create an ASIC to outperform the CPU.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!