{"action":"created","comment":{"url":"https://api.github.com/repos/zcash/zips/pulls/comments/80255077","id":80255077,"diff_hunk":"@@ -0,0 +1,256 @@\n+Abstract\n+========\n+\n+This ZIP describes the Zcash variant of the Stratum protocol, used by miners to\n+communicate with mining pool servers.\n+\n+\n+Specification\n+=============\n+\n+``mining.subscribe()``\n+----------------------\n+\n+Request::\n+\n+    {\"id\": 1, \"method\": \"mining.subscribe\", \"params\": [\"CONNECT_HOST\", CONNECT_PORT, \"MINER_USER_AGENT\", \"SESSION_ID\"]}\\n\n+\n+- ``CONNECT_HOST`` (str): The host string used by the miner.\n+\n+  - ``pool.example.com``\n+\n+- ``CONNECT_PORT`` (int): The port used by the miner.\n+\n+  - ``3337``\n+\n+- ``MINER_USER_AGENT`` (str): A free-form string specifying the type and version\n+  of the mining software. Recommended syntax is the User Agent format used by\n+  Zcash nodes.\n+\n+  - ``Zatoshi/1.0.0``\n+\n+- ``SESSION_ID`` (str): The id for a previous session that the miner wants to\n+  resume (e.g. after a temporary network disconnection).\n+\n+  - MAY be ``null`` indicating that the miner wants to start a new session.\n+\n+Response::\n+\n+    {\"id\": 1, \"result\": [\"NONCE_1\", \"SESSION_ID\"], \"error\": null}\\n\n+\n+- ``SESSION_ID`` (str): The session id, for use when resuming.\n+\n+  - MAY be ``null`` indicating that the server does not support session\n+    resuming.\n+\n+- ``NONCE_1`` (hex): The first part of the block header nonce.\n+\n+The nonce in Zcash's block header is 32 bytes long. The miner MUST pick\n+``NONCE_2`` such that ``len(NONCE_2) = 32 - len(NONCE_1)`` in bytes, or\n+``len(NONCE_2) = 64 - len(NONCE_1)`` in hex.\n+\n+\n+``mining.authorize()``\n+----------------------\n+\n+Request::\n+\n+    {\"id\": 2, \"method\": \"mining.authorize\", \"params\": [\"WORKER_NAME\", \"WORKER_PASSWORD\"]}\\n\n+\n+- ``WORKER_NAME`` (str): The worker name.\n+\n+- ``WORKER_PASSWORD`` (str): The worker name.\n+\n+Response::\n+\n+    {\"id\": 2, \"result\": AUTHENTICATED, \"error\": null}\\n\n+\n+- ``AUTHENTICATED`` (bool): The result of authentication.\n+\n+The server MAY provide an error message on invalid authentication.","path":"drafts/str4d-stratum/draft1.rst","position":70,"original_position":70,"commit_id":"142c7fda313bc65c4bf95fd4023573e3a2dff67e","original_commit_id":"142c7fda313bc65c4bf95fd4023573e3a2dff67e","user":{"login":"daira","id":643204,"avatar_url":"https://avatars.githubusercontent.com/u/643204?v=3","gravatar_id":"","url":"https://api.github.com/users/daira","html_url":"https://github.com/daira","followers_url":"https://api.github.com/users/daira/followers","following_url":"https://api.github.com/users/daira/following{/other_user}","gists_url":"https://api.github.com/users/daira/gists{/gist_id}","starred_url":"https://api.github.com/users/daira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daira/subscriptions","organizations_url":"https://api.github.com/users/daira/orgs","repos_url":"https://api.github.com/users/daira/repos","events_url":"https://api.github.com/users/daira/events{/privacy}","received_events_url":"https://api.github.com/users/daira/received_events","type":"User","site_admin":false},"body":"This is underspecified. It MUST provide an error message, and the format of error messages (in this case and in general) should be specified.","created_at":"2016-09-23T14:26:06Z","updated_at":"2016-09-23T14:26:06Z","html_url":"https://github.com/zcash/zips/pull/78#discussion_r80255077","pull_request_url":"https://api.github.com/repos/zcash/zips/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/zcash/zips/pulls/comments/80255077"},"html":{"href":"https://github.com/zcash/zips/pull/78#discussion_r80255077"},"pull_request":{"href":"https://api.github.com/repos/zcash/zips/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/zcash/zips/pulls/78","id":86515398,"html_url":"https://github.com/zcash/zips/pull/78","diff_url":"https://github.com/zcash/zips/pull/78.diff","patch_url":"https://github.com/zcash/zips/pull/78.patch","issue_url":"https://api.github.com/repos/zcash/zips/issues/78","number":78,"state":"open","locked":false,"title":"ZIP: Zcash Stratum protocol","user":{"login":"str4d","id":4993799,"avatar_url":"https://avatars.githubusercontent.com/u/4993799?v=3","gravatar_id":"","url":"https://api.github.com/users/str4d","html_url":"https://github.com/str4d","followers_url":"https://api.github.com/users/str4d/followers","following_url":"https://api.github.com/users/str4d/following{/other_user}","gists_url":"https://api.github.com/users/str4d/gists{/gist_id}","starred_url":"https://api.github.com/users/str4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/str4d/subscriptions","organizations_url":"https://api.github.com/users/str4d/orgs","repos_url":"https://api.github.com/users/str4d/repos","events_url":"https://api.github.com/users/str4d/events{/privacy}","received_events_url":"https://api.github.com/users/str4d/received_events","type":"User","site_admin":false},"body":"Closes #77","created_at":"2016-09-23T13:45:44Z","updated_at":"2016-09-23T14:26:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f875ef462d3aa0941347867b812e568d93cbd68e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zcash/zips/pulls/78/commits","review_comments_url":"https://api.github.com/repos/zcash/zips/pulls/78/comments","review_comment_url":"https://api.github.com/repos/zcash/zips/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zcash/zips/issues/78/comments","statuses_url":"https://api.github.com/repos/zcash/zips/statuses/142c7fda313bc65c4bf95fd4023573e3a2dff67e","head":{"label":"str4d:77-zip-stratum","ref":"77-zip-stratum","sha":"142c7fda313bc65c4bf95fd4023573e3a2dff67e","user":{"login":"str4d","id":4993799,"avatar_url":"https://avatars.githubusercontent.com/u/4993799?v=3","gravatar_id":"","url":"https://api.github.com/users/str4d","html_url":"https://github.com/str4d","followers_url":"https://api.github.com/users/str4d/followers","following_url":"https://api.github.com/users/str4d/following{/other_user}","gists_url":"https://api.github.com/users/str4d/gists{/gist_id}","starred_url":"https://api.github.com/users/str4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/str4d/subscriptions","organizations_url":"https://api.github.com/users/str4d/orgs","repos_url":"https://api.github.com/users/str4d/repos","events_url":"https://api.github.com/users/str4d/events{/privacy}","received_events_url":"https://api.github.com/users/str4d/received_events","type":"User","site_admin":false},"repo":{"id":69008390,"name":"zips","full_name":"str4d/zips","owner":{"login":"str4d","id":4993799,"avatar_url":"https://avatars.githubusercontent.com/u/4993799?v=3","gravatar_id":"","url":"https://api.github.com/users/str4d","html_url":"https://github.com/str4d","followers_url":"https://api.github.com/users/str4d/followers","following_url":"https://api.github.com/users/str4d/following{/other_user}","gists_url":"https://api.github.com/users/str4d/gists{/gist_id}","starred_url":"https://api.github.com/users/str4d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/str4d/subscriptions","organizations_url":"https://api.github.com/users/str4d/orgs","repos_url":"https://api.github.com/users/str4d/repos","events_url":"https://api.github.com/users/str4d/events{/privacy}","received_events_url":"https://api.github.com/users/str4d/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/str4d/zips","description":"Zcash Improvement Proposals","fork":true,"url":"https://api.github.com/repos/str4d/zips","forks_url":"https://api.github.com/repos/str4d/zips/forks","keys_url":"https://api.github.com/repos/str4d/zips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/str4d/zips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/str4d/zips/teams","hooks_url":"https://api.github.com/repos/str4d/zips/hooks","issue_events_url":"https://api.github.com/repos/str4d/zips/issues/events{/number}","events_url":"https://api.github.com/repos/str4d/zips/events","assignees_url":"https://api.github.com/repos/str4d/zips/assignees{/user}","branches_url":"https://api.github.com/repos/str4d/zips/branches{/branch}","tags_url":"https://api.github.com/repos/str4d/zips/tags","blobs_url":"https://api.github.com/repos/str4d/zips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/str4d/zips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/str4d/zips/git/refs{/sha}","trees_url":"https://api.github.com/repos/str4d/zips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/str4d/zips/statuses/{sha}","languages_url":"https://api.github.com/repos/str4d/zips/languages","stargazers_url":"https://api.github.com/repos/str4d/zips/stargazers","contributors_url":"https://api.github.com/repos/str4d/zips/contributors","subscribers_url":"https://api.github.com/repos/str4d/zips/subscribers","subscription_url":"https://api.github.com/repos/str4d/zips/subscription","commits_url":"https://api.github.com/repos/str4d/zips/commits{/sha}","git_commits_url":"https://api.github.com/repos/str4d/zips/git/commits{/sha}","comments_url":"https://api.github.com/repos/str4d/zips/comments{/number}","issue_comment_url":"https://api.github.com/repos/str4d/zips/issues/comments{/number}","contents_url":"https://api.github.com/repos/str4d/zips/contents/{+path}","compare_url":"https://api.github.com/repos/str4d/zips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/str4d/zips/merges","archive_url":"https://api.github.com/repos/str4d/zips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/str4d/zips/downloads","issues_url":"https://api.github.com/repos/str4d/zips/issues{/number}","pulls_url":"https://api.github.com/repos/str4d/zips/pulls{/number}","milestones_url":"https://api.github.com/repos/str4d/zips/milestones{/number}","notifications_url":"https://api.github.com/repos/str4d/zips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/str4d/zips/labels{/name}","releases_url":"https://api.github.com/repos/str4d/zips/releases{/id}","deployments_url":"https://api.github.com/repos/str4d/zips/deployments","created_at":"2016-09-23T09:04:20Z","updated_at":"2016-09-23T09:04:21Z","pushed_at":"2016-09-23T13:48:24Z","git_url":"git://github.com/str4d/zips.git","ssh_url":"git@github.com:str4d/zips.git","clone_url":"https://github.com/str4d/zips.git","svn_url":"https://github.com/str4d/zips","homepage":null,"size":27875,"stargazers_count":0,"watchers_count":0,"language":"TeX","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"zcash:master","ref":"master","sha":"1e69529de311e320067be46a09a24a806ab33f8c","user":{"login":"zcash","id":16122764,"avatar_url":"https://avatars.githubusercontent.com/u/16122764?v=3","gravatar_id":"","url":"https://api.github.com/users/zcash","html_url":"https://github.com/zcash","followers_url":"https://api.github.com/users/zcash/followers","following_url":"https://api.github.com/users/zcash/following{/other_user}","gists_url":"https://api.github.com/users/zcash/gists{/gist_id}","starred_url":"https://api.github.com/users/zcash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcash/subscriptions","organizations_url":"https://api.github.com/users/zcash/orgs","repos_url":"https://api.github.com/users/zcash/repos","events_url":"https://api.github.com/users/zcash/events{/privacy}","received_events_url":"https://api.github.com/users/zcash/received_events","type":"Organization","site_admin":false},"repo":{"id":47279130,"name":"zips","full_name":"zcash/zips","owner":{"login":"zcash","id":16122764,"avatar_url":"https://avatars.githubusercontent.com/u/16122764?v=3","gravatar_id":"","url":"https://api.github.com/users/zcash","html_url":"https://github.com/zcash","followers_url":"https://api.github.com/users/zcash/followers","following_url":"https://api.github.com/users/zcash/following{/other_user}","gists_url":"https://api.github.com/users/zcash/gists{/gist_id}","starred_url":"https://api.github.com/users/zcash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zcash/subscriptions","organizations_url":"https://api.github.com/users/zcash/orgs","repos_url":"https://api.github.com/users/zcash/repos","events_url":"https://api.github.com/users/zcash/events{/privacy}","received_events_url":"https://api.github.com/users/zcash/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zcash/zips","description":"Zcash Improvement Proposals","fork":false,"url":"https://api.github.com/repos/zcash/zips","forks_url":"https://api.github.com/repos/zcash/zips/forks","keys_url":"https://api.github.com/repos/zcash/zips/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zcash/zips/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zcash/zips/teams","hooks_url":"https://api.github.com/repos/zcash/zips/hooks","issue_events_url":"https://api.github.com/repos/zcash/zips/issues/events{/number}","events_url":"https://api.github.com/repos/zcash/zips/events","assignees_url":"https://api.github.com/repos/zcash/zips/assignees{/user}","branches_url":"https://api.github.com/repos/zcash/zips/branches{/branch}","tags_url":"https://api.github.com/repos/zcash/zips/tags","blobs_url":"https://api.github.com/repos/zcash/zips/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zcash/zips/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zcash/zips/git/refs{/sha}","trees_url":"https://api.github.com/repos/zcash/zips/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zcash/zips/statuses/{sha}","languages_url":"https://api.github.com/repos/zcash/zips/languages","stargazers_url":"https://api.github.com/repos/zcash/zips/stargazers","contributors_url":"https://api.github.com/repos/zcash/zips/contributors","subscribers_url":"https://api.github.com/repos/zcash/zips/subscribers","subscription_url":"https://api.github.com/repos/zcash/zips/subscription","commits_url":"https://api.github.com/repos/zcash/zips/commits{/sha}","git_commits_url":"https://api.github.com/repos/zcash/zips/git/commits{/sha}","comments_url":"https://api.github.com/repos/zcash/zips/comments{/number}","issue_comment_url":"https://api.github.com/repos/zcash/zips/issues/comments{/number}","contents_url":"https://api.github.com/repos/zcash/zips/contents/{+path}","compare_url":"https://api.github.com/repos/zcash/zips/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zcash/zips/merges","archive_url":"https://api.github.com/repos/zcash/zips/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zcash/zips/downloads","issues_url":"https://api.github.com/repos/zcash/zips/issues{/number}","pulls_url":"https://api.github.com/repos/zcash/zips/pulls{/number}","milestones_url":"https://api.github.com/repos/zcash/zips/milestones{/number}","notifications_url":"https://api.github.com/repos/zcash/zips/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zcash/zips/labels{/name}","releases_url":"https://api.github.com/repos/zcash/zips/releases{/id}","deployments_url":"https://api.github.com/repos/zcash/zips/deployments","created_at":"2015-12-02T18:12:08Z","updated_at":"2016-09-18T02:42:20Z","pushed_at":"2016-09-23T13:48:25Z","git_url":"git://github.com/zcash/zips.git","ssh_url":"git@github.com:zcash/zips.git","clone_url":"https://github.com/zcash/zips.git","svn_url":"https://github.com/zcash/zips","homepage":null,"size":27875,"stargazers_count":21,"watchers_count":21,"language":"TeX","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":24,"forks":7,"open_issues":24,"watchers":21,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zcash/zips/pulls/78"},"html":{"href":"https://github.com/zcash/zips/pull/78"},"issue":{"href":"https://api.github.com/repos/zcash/zips/issues/78"},"comments":{"href":"https://api.github.com/repos/zcash/zips/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/zcash/zips/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/zcash/zips/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zcash/zips/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/zcash/zips/statuses/142c7fda313bc65c4bf95fd4023573e3a2dff67e"}}}}
{"actor":{"display_login":"daira"}}