{"action":"created","comment":{"url":"https://api.github.com/repos/monetas/bmd/pulls/comments/27301118","id":27301118,"diff_hunk":"@@ -0,0 +1,59 @@\n+// This file is ignored during the regular build due to the following build tag.\n+// It is called by go generate and used to automatically generate pre-computed\n+// tables used to accelerate operations.\n+// +build ignore\n+\n+package main\n+\n+import (\n+\t\"bytes\"\n+\t\"compress/zlib\"\n+\t\"encoding/base64\"\n+\t\"fmt\"\n+\t\"log\"\n+\t\"os\"\n+\n+\t\"github.com/monetas/bmd/bmec\"\n+)\n+\n+func main() {\n+\tfi, err := os.Create(\"secp256k1.go\")\n+\tif err != nil {\n+\t\tlog.Fatal(err)\n+\t}\n+\tdefer fi.Close()\n+\n+\t// Compress the serialized byte points.\n+\tserialized := bmec.S256().SerializedBytePoints()\n+\tvar compressed bytes.Buffer\n+\tw := zlib.NewWriter(&compressed)\n+\tif _, err := w.Write(serialized); err != nil {\n+\t\tfmt.Println(err)\n+\t\tos.Exit(1)\n+\t}\n+\tw.Close()\n+\n+\t// Encode the compressed byte points with base64.\n+\tencoded := make([]byte, base64.StdEncoding.EncodedLen(compressed.Len()))\n+\tbase64.StdEncoding.Encode(encoded, compressed.Bytes())\n+\n+\tfmt.Fprintln(fi, \"// Copyright (c) 2015 Conformal Systems LLC.\")\n+\tfmt.Fprintln(fi, \"// Use of this source code is governed by an ISC\")\n+\tfmt.Fprintln(fi, \"// license that can be found in the LICENSE file.\")\n+\tfmt.Fprintln(fi)","path":"bmec/genprecomps.go","position":43,"original_position":43,"commit_id":"53f0058693f26abc0a170b12c8ce1efd3721a891","original_commit_id":"53f0058693f26abc0a170b12c8ce1efd3721a891","user":{"login":"jimmysong","id":524761,"avatar_url":"https://avatars.githubusercontent.com/u/524761?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmysong","html_url":"https://github.com/jimmysong","followers_url":"https://api.github.com/users/jimmysong/followers","following_url":"https://api.github.com/users/jimmysong/following{/other_user}","gists_url":"https://api.github.com/users/jimmysong/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmysong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmysong/subscriptions","organizations_url":"https://api.github.com/users/jimmysong/orgs","repos_url":"https://api.github.com/users/jimmysong/repos","events_url":"https://api.github.com/users/jimmysong/events{/privacy}","received_events_url":"https://api.github.com/users/jimmysong/received_events","type":"User","site_admin":false},"body":"Can you remove this part with the copyright? We'll add the correct copyright when we figure out the licensing.","created_at":"2015-03-27T15:03:26Z","updated_at":"2015-03-27T15:03:26Z","html_url":"https://github.com/monetas/bmd/pull/1#discussion_r27301118","pull_request_url":"https://api.github.com/repos/monetas/bmd/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/monetas/bmd/pulls/comments/27301118"},"html":{"href":"https://github.com/monetas/bmd/pull/1#discussion_r27301118"},"pull_request":{"href":"https://api.github.com/repos/monetas/bmd/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/monetas/bmd/pulls/1","id":31673780,"html_url":"https://github.com/monetas/bmd/pull/1","diff_url":"https://github.com/monetas/bmd/pull/1.diff","patch_url":"https://github.com/monetas/bmd/pull/1.patch","issue_url":"https://api.github.com/repos/monetas/bmd/issues/1","number":1,"state":"open","locked":false,"title":"Added encryption/decryption to EC library","user":{"login":"ishbir","id":43928,"avatar_url":"https://avatars.githubusercontent.com/u/43928?v=3","gravatar_id":"","url":"https://api.github.com/users/ishbir","html_url":"https://github.com/ishbir","followers_url":"https://api.github.com/users/ishbir/followers","following_url":"https://api.github.com/users/ishbir/following{/other_user}","gists_url":"https://api.github.com/users/ishbir/gists{/gist_id}","starred_url":"https://api.github.com/users/ishbir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishbir/subscriptions","organizations_url":"https://api.github.com/users/ishbir/orgs","repos_url":"https://api.github.com/users/ishbir/repos","events_url":"https://api.github.com/users/ishbir/events{/privacy}","received_events_url":"https://api.github.com/users/ishbir/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-21T16:28:54Z","updated_at":"2015-03-27T15:03:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2c5443f86c30e3a4458c8944a8150d8bb25a8a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/monetas/bmd/pulls/1/commits","review_comments_url":"https://api.github.com/repos/monetas/bmd/pulls/1/comments","review_comment_url":"https://api.github.com/repos/monetas/bmd/pulls/comments{/number}","comments_url":"https://api.github.com/repos/monetas/bmd/issues/1/comments","statuses_url":"https://api.github.com/repos/monetas/bmd/statuses/53f0058693f26abc0a170b12c8ce1efd3721a891","head":{"label":"ishbir:bmec","ref":"bmec","sha":"53f0058693f26abc0a170b12c8ce1efd3721a891","user":{"login":"ishbir","id":43928,"avatar_url":"https://avatars.githubusercontent.com/u/43928?v=3","gravatar_id":"","url":"https://api.github.com/users/ishbir","html_url":"https://github.com/ishbir","followers_url":"https://api.github.com/users/ishbir/followers","following_url":"https://api.github.com/users/ishbir/following{/other_user}","gists_url":"https://api.github.com/users/ishbir/gists{/gist_id}","starred_url":"https://api.github.com/users/ishbir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishbir/subscriptions","organizations_url":"https://api.github.com/users/ishbir/orgs","repos_url":"https://api.github.com/users/ishbir/repos","events_url":"https://api.github.com/users/ishbir/events{/privacy}","received_events_url":"https://api.github.com/users/ishbir/received_events","type":"User","site_admin":false},"repo":{"id":32639902,"name":"bmd","full_name":"ishbir/bmd","owner":{"login":"ishbir","id":43928,"avatar_url":"https://avatars.githubusercontent.com/u/43928?v=3","gravatar_id":"","url":"https://api.github.com/users/ishbir","html_url":"https://github.com/ishbir","followers_url":"https://api.github.com/users/ishbir/followers","following_url":"https://api.github.com/users/ishbir/following{/other_user}","gists_url":"https://api.github.com/users/ishbir/gists{/gist_id}","starred_url":"https://api.github.com/users/ishbir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishbir/subscriptions","organizations_url":"https://api.github.com/users/ishbir/orgs","repos_url":"https://api.github.com/users/ishbir/repos","events_url":"https://api.github.com/users/ishbir/events{/privacy}","received_events_url":"https://api.github.com/users/ishbir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ishbir/bmd","description":"","fork":true,"url":"https://api.github.com/repos/ishbir/bmd","forks_url":"https://api.github.com/repos/ishbir/bmd/forks","keys_url":"https://api.github.com/repos/ishbir/bmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ishbir/bmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ishbir/bmd/teams","hooks_url":"https://api.github.com/repos/ishbir/bmd/hooks","issue_events_url":"https://api.github.com/repos/ishbir/bmd/issues/events{/number}","events_url":"https://api.github.com/repos/ishbir/bmd/events","assignees_url":"https://api.github.com/repos/ishbir/bmd/assignees{/user}","branches_url":"https://api.github.com/repos/ishbir/bmd/branches{/branch}","tags_url":"https://api.github.com/repos/ishbir/bmd/tags","blobs_url":"https://api.github.com/repos/ishbir/bmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ishbir/bmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ishbir/bmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/ishbir/bmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ishbir/bmd/statuses/{sha}","languages_url":"https://api.github.com/repos/ishbir/bmd/languages","stargazers_url":"https://api.github.com/repos/ishbir/bmd/stargazers","contributors_url":"https://api.github.com/repos/ishbir/bmd/contributors","subscribers_url":"https://api.github.com/repos/ishbir/bmd/subscribers","subscription_url":"https://api.github.com/repos/ishbir/bmd/subscription","commits_url":"https://api.github.com/repos/ishbir/bmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/ishbir/bmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/ishbir/bmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/ishbir/bmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/ishbir/bmd/contents/{+path}","compare_url":"https://api.github.com/repos/ishbir/bmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ishbir/bmd/merges","archive_url":"https://api.github.com/repos/ishbir/bmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ishbir/bmd/downloads","issues_url":"https://api.github.com/repos/ishbir/bmd/issues{/number}","pulls_url":"https://api.github.com/repos/ishbir/bmd/pulls{/number}","milestones_url":"https://api.github.com/repos/ishbir/bmd/milestones{/number}","notifications_url":"https://api.github.com/repos/ishbir/bmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ishbir/bmd/labels{/name}","releases_url":"https://api.github.com/repos/ishbir/bmd/releases{/id}","created_at":"2015-03-21T16:27:47Z","updated_at":"2015-03-21T16:27:47Z","pushed_at":"2015-03-21T16:42:40Z","git_url":"git://github.com/ishbir/bmd.git","ssh_url":"git@github.com:ishbir/bmd.git","clone_url":"https://github.com/ishbir/bmd.git","svn_url":"https://github.com/ishbir/bmd","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"monetas:master","ref":"master","sha":"9188f1a43bbf604a0ae9bbc1742afefb1de56da0","user":{"login":"monetas","id":4219418,"avatar_url":"https://avatars.githubusercontent.com/u/4219418?v=3","gravatar_id":"","url":"https://api.github.com/users/monetas","html_url":"https://github.com/monetas","followers_url":"https://api.github.com/users/monetas/followers","following_url":"https://api.github.com/users/monetas/following{/other_user}","gists_url":"https://api.github.com/users/monetas/gists{/gist_id}","starred_url":"https://api.github.com/users/monetas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monetas/subscriptions","organizations_url":"https://api.github.com/users/monetas/orgs","repos_url":"https://api.github.com/users/monetas/repos","events_url":"https://api.github.com/users/monetas/events{/privacy}","received_events_url":"https://api.github.com/users/monetas/received_events","type":"Organization","site_admin":false},"repo":{"id":32594697,"name":"bmd","full_name":"monetas/bmd","owner":{"login":"monetas","id":4219418,"avatar_url":"https://avatars.githubusercontent.com/u/4219418?v=3","gravatar_id":"","url":"https://api.github.com/users/monetas","html_url":"https://github.com/monetas","followers_url":"https://api.github.com/users/monetas/followers","following_url":"https://api.github.com/users/monetas/following{/other_user}","gists_url":"https://api.github.com/users/monetas/gists{/gist_id}","starred_url":"https://api.github.com/users/monetas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monetas/subscriptions","organizations_url":"https://api.github.com/users/monetas/orgs","repos_url":"https://api.github.com/users/monetas/repos","events_url":"https://api.github.com/users/monetas/events{/privacy}","received_events_url":"https://api.github.com/users/monetas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/monetas/bmd","description":"","fork":false,"url":"https://api.github.com/repos/monetas/bmd","forks_url":"https://api.github.com/repos/monetas/bmd/forks","keys_url":"https://api.github.com/repos/monetas/bmd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monetas/bmd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monetas/bmd/teams","hooks_url":"https://api.github.com/repos/monetas/bmd/hooks","issue_events_url":"https://api.github.com/repos/monetas/bmd/issues/events{/number}","events_url":"https://api.github.com/repos/monetas/bmd/events","assignees_url":"https://api.github.com/repos/monetas/bmd/assignees{/user}","branches_url":"https://api.github.com/repos/monetas/bmd/branches{/branch}","tags_url":"https://api.github.com/repos/monetas/bmd/tags","blobs_url":"https://api.github.com/repos/monetas/bmd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monetas/bmd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monetas/bmd/git/refs{/sha}","trees_url":"https://api.github.com/repos/monetas/bmd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monetas/bmd/statuses/{sha}","languages_url":"https://api.github.com/repos/monetas/bmd/languages","stargazers_url":"https://api.github.com/repos/monetas/bmd/stargazers","contributors_url":"https://api.github.com/repos/monetas/bmd/contributors","subscribers_url":"https://api.github.com/repos/monetas/bmd/subscribers","subscription_url":"https://api.github.com/repos/monetas/bmd/subscription","commits_url":"https://api.github.com/repos/monetas/bmd/commits{/sha}","git_commits_url":"https://api.github.com/repos/monetas/bmd/git/commits{/sha}","comments_url":"https://api.github.com/repos/monetas/bmd/comments{/number}","issue_comment_url":"https://api.github.com/repos/monetas/bmd/issues/comments{/number}","contents_url":"https://api.github.com/repos/monetas/bmd/contents/{+path}","compare_url":"https://api.github.com/repos/monetas/bmd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monetas/bmd/merges","archive_url":"https://api.github.com/repos/monetas/bmd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monetas/bmd/downloads","issues_url":"https://api.github.com/repos/monetas/bmd/issues{/number}","pulls_url":"https://api.github.com/repos/monetas/bmd/pulls{/number}","milestones_url":"https://api.github.com/repos/monetas/bmd/milestones{/number}","notifications_url":"https://api.github.com/repos/monetas/bmd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monetas/bmd/labels{/name}","releases_url":"https://api.github.com/repos/monetas/bmd/releases{/id}","created_at":"2015-03-20T16:29:15Z","updated_at":"2015-03-21T15:31:58Z","pushed_at":"2015-03-21T19:08:17Z","git_url":"git://github.com/monetas/bmd.git","ssh_url":"git@github.com:monetas/bmd.git","clone_url":"https://github.com/monetas/bmd.git","svn_url":"https://github.com/monetas/bmd","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/monetas/bmd/pulls/1"},"html":{"href":"https://github.com/monetas/bmd/pull/1"},"issue":{"href":"https://api.github.com/repos/monetas/bmd/issues/1"},"comments":{"href":"https://api.github.com/repos/monetas/bmd/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/monetas/bmd/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/monetas/bmd/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/monetas/bmd/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/monetas/bmd/statuses/53f0058693f26abc0a170b12c8ce1efd3721a891"}}}}