I am an computer engineering student trying to understand how the Litecoin scrypt algorithm works. I downloaded the Github cp-uminer. Can someone give me some examples what the input data look like for the miner's scanhash_scrypt function input argument work.data? I know it is a 640-bit (80 byte) header. But I can't find any document that describes the fields of the header, little-endian/big-endian etc.
Also, some comparison with bitcoin's SHA confuses me. In the cpu-miner's scrypt.c, it takes input argument data and runs SHA256 transform on it. For Bitcoin, I would see that there is a conversion to big-endian before running the SHA256 transform. Is this expected?
Thanks!
Regards, SC