For educational purposes I wrote a program which performs the Cryptonight hash on some input. I verified my results using this "online-hasher" https://xmr.llcoins.net/slowhash.html .
Since I had some fun with this project I wanted to go one step further and try to let my program connect to a pool and do some work there. From the pool I get "id", "blob", "job_id" and "target". My superior packet-inspection skills suggest that the pool wants a "nonce" and a "result". However, I fail to fully understand how exactly these values are calculated.
I appreciate any help.