{"action":"created","comment":{"url":"https://api.github.com/repos/square/go-jose/pulls/comments/35361208","id":35361208,"diff_hunk":"@@ -175,3 +184,15 @@ func (b byteBuffer) bigInt() *big.Int {\n func (b byteBuffer) toInt() int {\n \treturn int(b.bigInt().Int64())\n }\n+\n+func trimZeros(data []byte) []byte {","path":"encoding.go","position":null,"original_position":28,"commit_id":"9950c3634ba41a0ddb22979a62779af61ef4ecb3","original_commit_id":"feed15e61134d330dff042b859d907884f51e5d7","user":{"login":"csstaub","id":639883,"avatar_url":"https://avatars.githubusercontent.com/u/639883?v=3","gravatar_id":"","url":"https://api.github.com/users/csstaub","html_url":"https://github.com/csstaub","followers_url":"https://api.github.com/users/csstaub/followers","following_url":"https://api.github.com/users/csstaub/following{/other_user}","gists_url":"https://api.github.com/users/csstaub/gists{/gist_id}","starred_url":"https://api.github.com/users/csstaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csstaub/subscriptions","organizations_url":"https://api.github.com/users/csstaub/orgs","repos_url":"https://api.github.com/users/csstaub/repos","events_url":"https://api.github.com/users/csstaub/events{/privacy}","received_events_url":"https://api.github.com/users/csstaub/received_events","type":"User","site_admin":false},"body":"Derp, yes","created_at":"2015-07-23T19:27:04Z","updated_at":"2015-07-23T19:27:04Z","html_url":"https://github.com/square/go-jose/pull/41#discussion_r35361208","pull_request_url":"https://api.github.com/repos/square/go-jose/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/square/go-jose/pulls/comments/35361208"},"html":{"href":"https://github.com/square/go-jose/pull/41#discussion_r35361208"},"pull_request":{"href":"https://api.github.com/repos/square/go-jose/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/square/go-jose/pulls/41","id":40707722,"html_url":"https://github.com/square/go-jose/pull/41","diff_url":"https://github.com/square/go-jose/pull/41.diff","patch_url":"https://github.com/square/go-jose/pull/41.patch","issue_url":"https://api.github.com/repos/square/go-jose/issues/41","number":41,"state":"open","locked":false,"title":"Fixes issue #40: extraneous zero padding on serialized exponent","user":{"login":"csstaub","id":639883,"avatar_url":"https://avatars.githubusercontent.com/u/639883?v=3","gravatar_id":"","url":"https://api.github.com/users/csstaub","html_url":"https://github.com/csstaub","followers_url":"https://api.github.com/users/csstaub/followers","following_url":"https://api.github.com/users/csstaub/following{/other_user}","gists_url":"https://api.github.com/users/csstaub/gists{/gist_id}","starred_url":"https://api.github.com/users/csstaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csstaub/subscriptions","organizations_url":"https://api.github.com/users/csstaub/orgs","repos_url":"https://api.github.com/users/csstaub/repos","events_url":"https://api.github.com/users/csstaub/events{/privacy}","received_events_url":"https://api.github.com/users/csstaub/received_events","type":"User","site_admin":false},"body":"@dgalling @r0ro","created_at":"2015-07-23T19:18:22Z","updated_at":"2015-07-23T19:27:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b84414e1851ed67d48f1bb152dceaea6b9cc06f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/square/go-jose/pulls/41/commits","review_comments_url":"https://api.github.com/repos/square/go-jose/pulls/41/comments","review_comment_url":"https://api.github.com/repos/square/go-jose/pulls/comments{/number}","comments_url":"https://api.github.com/repos/square/go-jose/issues/41/comments","statuses_url":"https://api.github.com/repos/square/go-jose/statuses/9950c3634ba41a0ddb22979a62779af61ef4ecb3","head":{"label":"square:cs/fix-zero-padding","ref":"cs/fix-zero-padding","sha":"9950c3634ba41a0ddb22979a62779af61ef4ecb3","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":26651710,"name":"go-jose","full_name":"square/go-jose","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/go-jose","description":"An implementation of JOSE standards in Golang.","fork":false,"url":"https://api.github.com/repos/square/go-jose","forks_url":"https://api.github.com/repos/square/go-jose/forks","keys_url":"https://api.github.com/repos/square/go-jose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/go-jose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/go-jose/teams","hooks_url":"https://api.github.com/repos/square/go-jose/hooks","issue_events_url":"https://api.github.com/repos/square/go-jose/issues/events{/number}","events_url":"https://api.github.com/repos/square/go-jose/events","assignees_url":"https://api.github.com/repos/square/go-jose/assignees{/user}","branches_url":"https://api.github.com/repos/square/go-jose/branches{/branch}","tags_url":"https://api.github.com/repos/square/go-jose/tags","blobs_url":"https://api.github.com/repos/square/go-jose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/go-jose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/go-jose/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/go-jose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/go-jose/statuses/{sha}","languages_url":"https://api.github.com/repos/square/go-jose/languages","stargazers_url":"https://api.github.com/repos/square/go-jose/stargazers","contributors_url":"https://api.github.com/repos/square/go-jose/contributors","subscribers_url":"https://api.github.com/repos/square/go-jose/subscribers","subscription_url":"https://api.github.com/repos/square/go-jose/subscription","commits_url":"https://api.github.com/repos/square/go-jose/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/go-jose/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/go-jose/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/go-jose/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/go-jose/contents/{+path}","compare_url":"https://api.github.com/repos/square/go-jose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/go-jose/merges","archive_url":"https://api.github.com/repos/square/go-jose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/go-jose/downloads","issues_url":"https://api.github.com/repos/square/go-jose/issues{/number}","pulls_url":"https://api.github.com/repos/square/go-jose/pulls{/number}","milestones_url":"https://api.github.com/repos/square/go-jose/milestones{/number}","notifications_url":"https://api.github.com/repos/square/go-jose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/go-jose/labels{/name}","releases_url":"https://api.github.com/repos/square/go-jose/releases{/id}","created_at":"2014-11-14T18:27:31Z","updated_at":"2015-07-23T15:36:29Z","pushed_at":"2015-07-23T19:26:45Z","git_url":"git://github.com/square/go-jose.git","ssh_url":"git@github.com:square/go-jose.git","clone_url":"https://github.com/square/go-jose.git","svn_url":"https://github.com/square/go-jose","homepage":"https://godoc.org/github.com/square/go-jose","size":1267,"stargazers_count":374,"watchers_count":374,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":7,"forks":31,"open_issues":7,"watchers":374,"default_branch":"master"}},"base":{"label":"square:master","ref":"master","sha":"f1f7ccb5a4899c47f5a31ba3fd3c18c219776ede","user":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"repo":{"id":26651710,"name":"go-jose","full_name":"square/go-jose","owner":{"login":"square","id":82592,"avatar_url":"https://avatars.githubusercontent.com/u/82592?v=3","gravatar_id":"","url":"https://api.github.com/users/square","html_url":"https://github.com/square","followers_url":"https://api.github.com/users/square/followers","following_url":"https://api.github.com/users/square/following{/other_user}","gists_url":"https://api.github.com/users/square/gists{/gist_id}","starred_url":"https://api.github.com/users/square/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/square/subscriptions","organizations_url":"https://api.github.com/users/square/orgs","repos_url":"https://api.github.com/users/square/repos","events_url":"https://api.github.com/users/square/events{/privacy}","received_events_url":"https://api.github.com/users/square/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/square/go-jose","description":"An implementation of JOSE standards in Golang.","fork":false,"url":"https://api.github.com/repos/square/go-jose","forks_url":"https://api.github.com/repos/square/go-jose/forks","keys_url":"https://api.github.com/repos/square/go-jose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/square/go-jose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/square/go-jose/teams","hooks_url":"https://api.github.com/repos/square/go-jose/hooks","issue_events_url":"https://api.github.com/repos/square/go-jose/issues/events{/number}","events_url":"https://api.github.com/repos/square/go-jose/events","assignees_url":"https://api.github.com/repos/square/go-jose/assignees{/user}","branches_url":"https://api.github.com/repos/square/go-jose/branches{/branch}","tags_url":"https://api.github.com/repos/square/go-jose/tags","blobs_url":"https://api.github.com/repos/square/go-jose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/square/go-jose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/square/go-jose/git/refs{/sha}","trees_url":"https://api.github.com/repos/square/go-jose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/square/go-jose/statuses/{sha}","languages_url":"https://api.github.com/repos/square/go-jose/languages","stargazers_url":"https://api.github.com/repos/square/go-jose/stargazers","contributors_url":"https://api.github.com/repos/square/go-jose/contributors","subscribers_url":"https://api.github.com/repos/square/go-jose/subscribers","subscription_url":"https://api.github.com/repos/square/go-jose/subscription","commits_url":"https://api.github.com/repos/square/go-jose/commits{/sha}","git_commits_url":"https://api.github.com/repos/square/go-jose/git/commits{/sha}","comments_url":"https://api.github.com/repos/square/go-jose/comments{/number}","issue_comment_url":"https://api.github.com/repos/square/go-jose/issues/comments{/number}","contents_url":"https://api.github.com/repos/square/go-jose/contents/{+path}","compare_url":"https://api.github.com/repos/square/go-jose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/square/go-jose/merges","archive_url":"https://api.github.com/repos/square/go-jose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/square/go-jose/downloads","issues_url":"https://api.github.com/repos/square/go-jose/issues{/number}","pulls_url":"https://api.github.com/repos/square/go-jose/pulls{/number}","milestones_url":"https://api.github.com/repos/square/go-jose/milestones{/number}","notifications_url":"https://api.github.com/repos/square/go-jose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/square/go-jose/labels{/name}","releases_url":"https://api.github.com/repos/square/go-jose/releases{/id}","created_at":"2014-11-14T18:27:31Z","updated_at":"2015-07-23T15:36:29Z","pushed_at":"2015-07-23T19:26:45Z","git_url":"git://github.com/square/go-jose.git","ssh_url":"git@github.com:square/go-jose.git","clone_url":"https://github.com/square/go-jose.git","svn_url":"https://github.com/square/go-jose","homepage":"https://godoc.org/github.com/square/go-jose","size":1267,"stargazers_count":374,"watchers_count":374,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":7,"forks":31,"open_issues":7,"watchers":374,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/square/go-jose/pulls/41"},"html":{"href":"https://github.com/square/go-jose/pull/41"},"issue":{"href":"https://api.github.com/repos/square/go-jose/issues/41"},"comments":{"href":"https://api.github.com/repos/square/go-jose/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/square/go-jose/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/square/go-jose/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/square/go-jose/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/square/go-jose/statuses/9950c3634ba41a0ddb22979a62779af61ef4ecb3"}}}}