Stratum JSON-RPC using Slush mining pool

I’m starting to implement my Zcash miner and I want to configure it in such a way it connects to some webmining pool. For now I’m trying to understand how stratum protocol works making some JSON-RPC requests to Slush like described in this documentation.

I’ve tried so to connect to the server with the following JSON-RPC request:

{"id": 1, "method": "mining.subscribe", "params": []}

obtaining this response:

{"id":1,"result":[null,"2f2e650700027768"],"error":null}

followed by:

{"id":null,"method":"mining.set_target","params":["001dca01dca01dca01dca01dca01dca01dca01dca01dca01dca01dca01dca01d"]}
{"id":null,"method":"mining.notify","params":["79c44d10","04000000","638bcfd7278d69b189702a67db2dff0140d6886786f137ec17bd910100000000","87406a3401b57c8aba95af8347cc481e7686bc5d0a3342c5695943ae0f81021e","fb4e18658691866e2c3d7559847bdb680634df6a843b37363fb259b6ea6c4a10","9b0f9c5e","a675021c",true]}

I’m wondering what is the meaning of the response since the slush documentation reports that the server’s response should have this structure:

{"id": 1, "result": [ [ ["mining.set_difficulty", "b4b6693b72a50c7116db18d6497cac52"], ["mining.notify", "ae6812eb4cd7735a302a8a9dd95cf71f"]], "08000002", 4], "error": null}

I’ve not personally built stratum mining software, but I know others have. You might dig through thier code to see if you can get it to work:

Thank you, it is very usefull. I have also seen that here I can find all the Slushpool’s specification related to ZCash.