Bitcoin Forum
December 17, 2017, 11:16:28 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Litecoin proof of work  (Read 2877 times)
pieppiep
Hero Member
*****
Offline Offline

Activity: 702



View Profile
May 15, 2012, 10:25:25 AM
 #1

I'm interested in the proof of work concept used in the cryptocurrencies.
The one used for bitcoin I understand and implement if I want.
The one used for litecoin is a bit harder to find.
Until now I just find I should replace the sha256(sha256(block of 80 bytes)) with scrypt(block of 80 bytes).
The problem is the scrypt hash, I can't find a clear description.
I know it somehow generates a pseudo random block of data with a length of 128kB and does some pseudo random mixing of that block.
The sourcecode of the cpuminer I found is to optimized for me to read.
Does anyone have a link to some pseudo code like the one on http://en.wikipedia.org/wiki/Sha256 but for scrypt?

    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄   
   ████████████████████████████████   
     ▀██████████████████████████▀     
        ▀████████████████████▀       
          ████████████████▀         
            █████████████           
            ▀████████████▀           
             ▀██████████▀             
              ██████████             
               ████████               
               ▀██████▀               
                ██████               
                  ▀                   
.
.trade.io.
██████
██████
███
███
███
███
███
███
███
███
███
██████
██████

▄██████████████████▄
███       ▀███████
███       █████████
███       █████████
███       █████████
███              ██
███   ▄▄▄▄▄▄▄▄   ███
███   ▄▄▄▄▄▄▄▄   ███
███              ███
███▄▄▄▄▄▄▄▄▄▄▄▄▄▄███
██████████████████▀

▄██████████████████▄
███████████▀ ███████
█████████▀   ███████
███████▀     ██▀ ███
███ ▀▀       █▄▄████
███          █▀▀▀▀██
███ ▄▄       ███████
██████▄     █▄ ▀███
█████████▄   ███▄███
███████████▄ ███████
▀██████████████████▀

▄██████████████████▄
████████████████████
███████████████▀▀ ██
█████████▀▀     ███
████▀▀     ▄█▀   ███
███▄    ▄██      ███
█████████▀      ▄██
█████████▄     ████
█████████████▄ ▄████
████████████████████
▀██████████████████▀
██████
██████
   ███
   ███
   ███
   ███
   ███
   ███
   ███
   ███
   ███
██████
██████
.
.Join the Trading Revolution.
Satoshi is no god. He did not come down from the mountain with 10 golden rules engraved in stone for no one to question.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513509388
Hero Member
*
Offline Offline

Posts: 1513509388

View Profile Personal Message (Offline)

Ignore
1513509388
Reply with quote  #2

1513509388
Report to moderator
1513509388
Hero Member
*
Offline Offline

Posts: 1513509388

View Profile Personal Message (Offline)

Ignore
1513509388
Reply with quote  #2

1513509388
Report to moderator
pooler
Hero Member
*****
Offline Offline

Activity: 717


View Profile
May 15, 2012, 11:03:09 AM
 #2

A thorough description of scrypt is available at the following address, along with a reference C implementation:
http://www.tarsnap.com/scrypt.html

The scrypt-based proof of work is described in the Litecoin Wiki:
https://github.com/coblee/litecoin/wiki/Scrypt-proof-of-work

BTC: 15MRTcUweNVJbhTyH5rq9aeSdyigFrskqE · LTC: LTCPooLqTK1SANSNeTR63GbGwabTKEkuS7
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!