{"action":"created","comment":{"url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments/166468506","pull_request_review_id":94535754,"id":166468506,"diff_hunk":"@@ -15,19 +15,23 @@ import (\n )\n \n const (\n-\tTwofishOverhead = 28 // number of bytes added by EncryptBytes\n+\t// TwofishOverhead is the number of bytes added by EncryptBytes\n+\tTwofishOverhead = 28\n )\n \n var (\n+\t// ErrInsufficientLen is an error when supplied ciphertext is not long enough to contain a nonce\n \tErrInsufficientLen = errors.New(\"supplied ciphertext is not long enough to contain a nonce\")\n )\n \n type (\n+\t// Ciphertext {insert comment here}","path":"crypto/encrypt.go","position":15,"original_position":15,"commit_id":"68c1da3d3e96c7e6071c97200defc645a8f0fe51","original_commit_id":"68c1da3d3e96c7e6071c97200defc645a8f0fe51","user":{"login":"lukechampine","id":3344749,"avatar_url":"https://avatars2.githubusercontent.com/u/3344749?v=4","gravatar_id":"","url":"https://api.github.com/users/lukechampine","html_url":"https://github.com/lukechampine","followers_url":"https://api.github.com/users/lukechampine/followers","following_url":"https://api.github.com/users/lukechampine/following{/other_user}","gists_url":"https://api.github.com/users/lukechampine/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechampine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechampine/subscriptions","organizations_url":"https://api.github.com/users/lukechampine/orgs","repos_url":"https://api.github.com/users/lukechampine/repos","events_url":"https://api.github.com/users/lukechampine/events{/privacy}","received_events_url":"https://api.github.com/users/lukechampine/received_events","type":"User","site_admin":false},"body":"`Ciphertext is an encrypted []byte.`","created_at":"2018-02-06T22:52:14Z","updated_at":"2018-02-06T22:52:14Z","html_url":"https://github.com/NebulousLabs/Sia/pull/2736#discussion_r166468506","pull_request_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments/166468506"},"html":{"href":"https://github.com/NebulousLabs/Sia/pull/2736#discussion_r166468506"},"pull_request":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736"}}},"pull_request":{"url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736","id":167317567,"html_url":"https://github.com/NebulousLabs/Sia/pull/2736","diff_url":"https://github.com/NebulousLabs/Sia/pull/2736.diff","patch_url":"https://github.com/NebulousLabs/Sia/pull/2736.patch","issue_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/2736","number":2736,"state":"open","locked":false,"title":"Added ./compatibility and ./crypto to lint packages","user":{"login":"mharkus","id":283348,"avatar_url":"https://avatars3.githubusercontent.com/u/283348?v=4","gravatar_id":"","url":"https://api.github.com/users/mharkus","html_url":"https://github.com/mharkus","followers_url":"https://api.github.com/users/mharkus/followers","following_url":"https://api.github.com/users/mharkus/following{/other_user}","gists_url":"https://api.github.com/users/mharkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mharkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mharkus/subscriptions","organizations_url":"https://api.github.com/users/mharkus/orgs","repos_url":"https://api.github.com/users/mharkus/repos","events_url":"https://api.github.com/users/mharkus/events{/privacy}","received_events_url":"https://api.github.com/users/mharkus/received_events","type":"User","site_admin":false},"body":"This PR is for #2702. ./compatibility module didn't show any lint errors so I added ./crypto.\r\n\r\n I also needed some help with some of the comments below. See lines with {insert comment here}.","created_at":"2018-02-06T04:25:03Z","updated_at":"2018-02-06T22:52:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"daf0f8dd80602332152491b2ad4d8c6b0c78b7a6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736/commits","review_comments_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736/comments","review_comment_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/2736/comments","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia/statuses/68c1da3d3e96c7e6071c97200defc645a8f0fe51","head":{"label":"mharkus:lintcleanup","ref":"lintcleanup","sha":"68c1da3d3e96c7e6071c97200defc645a8f0fe51","user":{"login":"mharkus","id":283348,"avatar_url":"https://avatars3.githubusercontent.com/u/283348?v=4","gravatar_id":"","url":"https://api.github.com/users/mharkus","html_url":"https://github.com/mharkus","followers_url":"https://api.github.com/users/mharkus/followers","following_url":"https://api.github.com/users/mharkus/following{/other_user}","gists_url":"https://api.github.com/users/mharkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mharkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mharkus/subscriptions","organizations_url":"https://api.github.com/users/mharkus/orgs","repos_url":"https://api.github.com/users/mharkus/repos","events_url":"https://api.github.com/users/mharkus/events{/privacy}","received_events_url":"https://api.github.com/users/mharkus/received_events","type":"User","site_admin":false},"repo":{"id":98000465,"name":"Sia","full_name":"mharkus/Sia","owner":{"login":"mharkus","id":283348,"avatar_url":"https://avatars3.githubusercontent.com/u/283348?v=4","gravatar_id":"","url":"https://api.github.com/users/mharkus","html_url":"https://github.com/mharkus","followers_url":"https://api.github.com/users/mharkus/followers","following_url":"https://api.github.com/users/mharkus/following{/other_user}","gists_url":"https://api.github.com/users/mharkus/gists{/gist_id}","starred_url":"https://api.github.com/users/mharkus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mharkus/subscriptions","organizations_url":"https://api.github.com/users/mharkus/orgs","repos_url":"https://api.github.com/users/mharkus/repos","events_url":"https://api.github.com/users/mharkus/events{/privacy}","received_events_url":"https://api.github.com/users/mharkus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mharkus/Sia","description":"Blockchain-based marketplace for file storage","fork":true,"url":"https://api.github.com/repos/mharkus/Sia","forks_url":"https://api.github.com/repos/mharkus/Sia/forks","keys_url":"https://api.github.com/repos/mharkus/Sia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mharkus/Sia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mharkus/Sia/teams","hooks_url":"https://api.github.com/repos/mharkus/Sia/hooks","issue_events_url":"https://api.github.com/repos/mharkus/Sia/issues/events{/number}","events_url":"https://api.github.com/repos/mharkus/Sia/events","assignees_url":"https://api.github.com/repos/mharkus/Sia/assignees{/user}","branches_url":"https://api.github.com/repos/mharkus/Sia/branches{/branch}","tags_url":"https://api.github.com/repos/mharkus/Sia/tags","blobs_url":"https://api.github.com/repos/mharkus/Sia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mharkus/Sia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mharkus/Sia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mharkus/Sia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mharkus/Sia/statuses/{sha}","languages_url":"https://api.github.com/repos/mharkus/Sia/languages","stargazers_url":"https://api.github.com/repos/mharkus/Sia/stargazers","contributors_url":"https://api.github.com/repos/mharkus/Sia/contributors","subscribers_url":"https://api.github.com/repos/mharkus/Sia/subscribers","subscription_url":"https://api.github.com/repos/mharkus/Sia/subscription","commits_url":"https://api.github.com/repos/mharkus/Sia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mharkus/Sia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mharkus/Sia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mharkus/Sia/issues/comments{/number}","contents_url":"https://api.github.com/repos/mharkus/Sia/contents/{+path}","compare_url":"https://api.github.com/repos/mharkus/Sia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mharkus/Sia/merges","archive_url":"https://api.github.com/repos/mharkus/Sia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mharkus/Sia/downloads","issues_url":"https://api.github.com/repos/mharkus/Sia/issues{/number}","pulls_url":"https://api.github.com/repos/mharkus/Sia/pulls{/number}","milestones_url":"https://api.github.com/repos/mharkus/Sia/milestones{/number}","notifications_url":"https://api.github.com/repos/mharkus/Sia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mharkus/Sia/labels{/name}","releases_url":"https://api.github.com/repos/mharkus/Sia/releases{/id}","deployments_url":"https://api.github.com/repos/mharkus/Sia/deployments","created_at":"2017-07-22T02:10:29Z","updated_at":"2017-07-22T02:10:32Z","pushed_at":"2018-02-06T04:22:13Z","git_url":"git://github.com/mharkus/Sia.git","ssh_url":"git@github.com:mharkus/Sia.git","clone_url":"https://github.com/mharkus/Sia.git","svn_url":"https://github.com/mharkus/Sia","homepage":"https://sia.tech","size":16077,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NebulousLabs:master","ref":"master","sha":"df1eeba965a98fb2c7146656df11dce29f38a861","user":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars1.githubusercontent.com/u/7471422?v=4","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":25370072,"name":"Sia","full_name":"NebulousLabs/Sia","owner":{"login":"NebulousLabs","id":7471422,"avatar_url":"https://avatars1.githubusercontent.com/u/7471422?v=4","gravatar_id":"","url":"https://api.github.com/users/NebulousLabs","html_url":"https://github.com/NebulousLabs","followers_url":"https://api.github.com/users/NebulousLabs/followers","following_url":"https://api.github.com/users/NebulousLabs/following{/other_user}","gists_url":"https://api.github.com/users/NebulousLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/NebulousLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NebulousLabs/subscriptions","organizations_url":"https://api.github.com/users/NebulousLabs/orgs","repos_url":"https://api.github.com/users/NebulousLabs/repos","events_url":"https://api.github.com/users/NebulousLabs/events{/privacy}","received_events_url":"https://api.github.com/users/NebulousLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NebulousLabs/Sia","description":"Blockchain-based marketplace for file storage","fork":false,"url":"https://api.github.com/repos/NebulousLabs/Sia","forks_url":"https://api.github.com/repos/NebulousLabs/Sia/forks","keys_url":"https://api.github.com/repos/NebulousLabs/Sia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NebulousLabs/Sia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NebulousLabs/Sia/teams","hooks_url":"https://api.github.com/repos/NebulousLabs/Sia/hooks","issue_events_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/events{/number}","events_url":"https://api.github.com/repos/NebulousLabs/Sia/events","assignees_url":"https://api.github.com/repos/NebulousLabs/Sia/assignees{/user}","branches_url":"https://api.github.com/repos/NebulousLabs/Sia/branches{/branch}","tags_url":"https://api.github.com/repos/NebulousLabs/Sia/tags","blobs_url":"https://api.github.com/repos/NebulousLabs/Sia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NebulousLabs/Sia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NebulousLabs/Sia/git/refs{/sha}","trees_url":"https://api.github.com/repos/NebulousLabs/Sia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NebulousLabs/Sia/statuses/{sha}","languages_url":"https://api.github.com/repos/NebulousLabs/Sia/languages","stargazers_url":"https://api.github.com/repos/NebulousLabs/Sia/stargazers","contributors_url":"https://api.github.com/repos/NebulousLabs/Sia/contributors","subscribers_url":"https://api.github.com/repos/NebulousLabs/Sia/subscribers","subscription_url":"https://api.github.com/repos/NebulousLabs/Sia/subscription","commits_url":"https://api.github.com/repos/NebulousLabs/Sia/commits{/sha}","git_commits_url":"https://api.github.com/repos/NebulousLabs/Sia/git/commits{/sha}","comments_url":"https://api.github.com/repos/NebulousLabs/Sia/comments{/number}","issue_comment_url":"https://api.github.com/repos/NebulousLabs/Sia/issues/comments{/number}","contents_url":"https://api.github.com/repos/NebulousLabs/Sia/contents/{+path}","compare_url":"https://api.github.com/repos/NebulousLabs/Sia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NebulousLabs/Sia/merges","archive_url":"https://api.github.com/repos/NebulousLabs/Sia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NebulousLabs/Sia/downloads","issues_url":"https://api.github.com/repos/NebulousLabs/Sia/issues{/number}","pulls_url":"https://api.github.com/repos/NebulousLabs/Sia/pulls{/number}","milestones_url":"https://api.github.com/repos/NebulousLabs/Sia/milestones{/number}","notifications_url":"https://api.github.com/repos/NebulousLabs/Sia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NebulousLabs/Sia/labels{/name}","releases_url":"https://api.github.com/repos/NebulousLabs/Sia/releases{/id}","deployments_url":"https://api.github.com/repos/NebulousLabs/Sia/deployments","created_at":"2014-10-17T17:50:25Z","updated_at":"2018-02-06T14:36:05Z","pushed_at":"2018-02-06T21:37:30Z","git_url":"git://github.com/NebulousLabs/Sia.git","ssh_url":"git@github.com:NebulousLabs/Sia.git","clone_url":"https://github.com/NebulousLabs/Sia.git","svn_url":"https://github.com/NebulousLabs/Sia","homepage":"https://sia.tech","size":20412,"stargazers_count":2334,"watchers_count":2334,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":332,"mirror_url":null,"archived":false,"open_issues_count":163,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":332,"open_issues":163,"watchers":2334,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736"},"html":{"href":"https://github.com/NebulousLabs/Sia/pull/2736"},"issue":{"href":"https://api.github.com/repos/NebulousLabs/Sia/issues/2736"},"comments":{"href":"https://api.github.com/repos/NebulousLabs/Sia/issues/2736/comments"},"review_comments":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736/comments"},"review_comment":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NebulousLabs/Sia/pulls/2736/commits"},"statuses":{"href":"https://api.github.com/repos/NebulousLabs/Sia/statuses/68c1da3d3e96c7e6071c97200defc645a8f0fe51"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lukechampine"}}