{"action":"created","comment":{"url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/comments/238096180","pull_request_review_id":180558969,"id":238096180,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODA5NjE4MA==","diff_hunk":"@@ -0,0 +1,45 @@\n+import { ECPair } from 'bitcoinjs-lib';\n+import { NEW_KEYS } from '../../constants/actions';\n+import { getHexString } from '../../scripts/utils';\n+\n+class GenerateKeys {\n+  constructor() {\n+    const map = new Map();","path":"src/action/keys/index.js","position":7,"original_position":7,"commit_id":"ce70a2349c1245ac030034d3663df351b0aa3664","original_commit_id":"ce70a2349c1245ac030034d3663df351b0aa3664","user":{"login":"michael1011","id":8138838,"node_id":"MDQ6VXNlcjgxMzg4Mzg=","avatar_url":"https://avatars0.githubusercontent.com/u/8138838?v=4","gravatar_id":"","url":"https://api.github.com/users/michael1011","html_url":"https://github.com/michael1011","followers_url":"https://api.github.com/users/michael1011/followers","following_url":"https://api.github.com/users/michael1011/following{/other_user}","gists_url":"https://api.github.com/users/michael1011/gists{/gist_id}","starred_url":"https://api.github.com/users/michael1011/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael1011/subscriptions","organizations_url":"https://api.github.com/users/michael1011/orgs","repos_url":"https://api.github.com/users/michael1011/repos","events_url":"https://api.github.com/users/michael1011/events{/privacy}","received_events_url":"https://api.github.com/users/michael1011/received_events","type":"User","site_admin":false},"body":"Why is a map needed if there is only a single entry in it anyways?","created_at":"2018-12-02T12:12:09Z","updated_at":"2018-12-02T12:16:44Z","html_url":"https://github.com/BoltzExchange/boltz-frontend/pull/8#discussion_r238096180","pull_request_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/comments/238096180"},"html":{"href":"https://github.com/BoltzExchange/boltz-frontend/pull/8#discussion_r238096180"},"pull_request":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8","id":235214947,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1MjE0OTQ3","html_url":"https://github.com/BoltzExchange/boltz-frontend/pull/8","diff_url":"https://github.com/BoltzExchange/boltz-frontend/pull/8.diff","patch_url":"https://github.com/BoltzExchange/boltz-frontend/pull/8.patch","issue_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/8","number":8,"state":"open","locked":false,"title":"Swap[WIP]","user":{"login":"ImmanuelSegol","id":11227560,"node_id":"MDQ6VXNlcjExMjI3NTYw","avatar_url":"https://avatars3.githubusercontent.com/u/11227560?v=4","gravatar_id":"","url":"https://api.github.com/users/ImmanuelSegol","html_url":"https://github.com/ImmanuelSegol","followers_url":"https://api.github.com/users/ImmanuelSegol/followers","following_url":"https://api.github.com/users/ImmanuelSegol/following{/other_user}","gists_url":"https://api.github.com/users/ImmanuelSegol/gists{/gist_id}","starred_url":"https://api.github.com/users/ImmanuelSegol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ImmanuelSegol/subscriptions","organizations_url":"https://api.github.com/users/ImmanuelSegol/orgs","repos_url":"https://api.github.com/users/ImmanuelSegol/repos","events_url":"https://api.github.com/users/ImmanuelSegol/events{/privacy}","received_events_url":"https://api.github.com/users/ImmanuelSegol/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-01T19:58:09Z","updated_at":"2018-12-02T12:16:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"060a5a27b3c4a79c0b9bde7d5918e3975adc506a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"peartobear","id":44926540,"node_id":"MDQ6VXNlcjQ0OTI2NTQw","avatar_url":"https://avatars3.githubusercontent.com/u/44926540?v=4","gravatar_id":"","url":"https://api.github.com/users/peartobear","html_url":"https://github.com/peartobear","followers_url":"https://api.github.com/users/peartobear/followers","following_url":"https://api.github.com/users/peartobear/following{/other_user}","gists_url":"https://api.github.com/users/peartobear/gists{/gist_id}","starred_url":"https://api.github.com/users/peartobear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peartobear/subscriptions","organizations_url":"https://api.github.com/users/peartobear/orgs","repos_url":"https://api.github.com/users/peartobear/repos","events_url":"https://api.github.com/users/peartobear/events{/privacy}","received_events_url":"https://api.github.com/users/peartobear/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8/commits","review_comments_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8/comments","review_comment_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/8/comments","statuses_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/statuses/ce70a2349c1245ac030034d3663df351b0aa3664","head":{"label":"BoltzExchange:swap","ref":"swap","sha":"ce70a2349c1245ac030034d3663df351b0aa3664","user":{"login":"BoltzExchange","id":44981752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTgxNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/44981752?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltzExchange","html_url":"https://github.com/BoltzExchange","followers_url":"https://api.github.com/users/BoltzExchange/followers","following_url":"https://api.github.com/users/BoltzExchange/following{/other_user}","gists_url":"https://api.github.com/users/BoltzExchange/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltzExchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltzExchange/subscriptions","organizations_url":"https://api.github.com/users/BoltzExchange/orgs","repos_url":"https://api.github.com/users/BoltzExchange/repos","events_url":"https://api.github.com/users/BoltzExchange/events{/privacy}","received_events_url":"https://api.github.com/users/BoltzExchange/received_events","type":"Organization","site_admin":false},"repo":{"id":157972348,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc5NzIzNDg=","name":"boltz-frontend","full_name":"BoltzExchange/boltz-frontend","private":false,"owner":{"login":"BoltzExchange","id":44981752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTgxNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/44981752?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltzExchange","html_url":"https://github.com/BoltzExchange","followers_url":"https://api.github.com/users/BoltzExchange/followers","following_url":"https://api.github.com/users/BoltzExchange/following{/other_user}","gists_url":"https://api.github.com/users/BoltzExchange/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltzExchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltzExchange/subscriptions","organizations_url":"https://api.github.com/users/BoltzExchange/orgs","repos_url":"https://api.github.com/users/BoltzExchange/repos","events_url":"https://api.github.com/users/BoltzExchange/events{/privacy}","received_events_url":"https://api.github.com/users/BoltzExchange/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BoltzExchange/boltz-frontend","description":"Frontend of Boltz","fork":false,"url":"https://api.github.com/repos/BoltzExchange/boltz-frontend","forks_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/forks","keys_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/teams","hooks_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/hooks","issue_events_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/events","assignees_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/tags","blobs_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/languages","stargazers_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/stargazers","contributors_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/contributors","subscribers_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/subscribers","subscription_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/subscription","commits_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/merges","archive_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/downloads","issues_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/labels{/name}","releases_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/deployments","created_at":"2018-11-17T10:05:46Z","updated_at":"2018-11-28T13:24:52Z","pushed_at":"2018-12-02T11:52:08Z","git_url":"git://github.com/BoltzExchange/boltz-frontend.git","ssh_url":"git@github.com:BoltzExchange/boltz-frontend.git","clone_url":"https://github.com/BoltzExchange/boltz-frontend.git","svn_url":"https://github.com/BoltzExchange/boltz-frontend","homepage":"","size":1094,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"BoltzExchange:master","ref":"master","sha":"89bb870cbeb9f38943c47ee030c375cf10a4700a","user":{"login":"BoltzExchange","id":44981752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTgxNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/44981752?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltzExchange","html_url":"https://github.com/BoltzExchange","followers_url":"https://api.github.com/users/BoltzExchange/followers","following_url":"https://api.github.com/users/BoltzExchange/following{/other_user}","gists_url":"https://api.github.com/users/BoltzExchange/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltzExchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltzExchange/subscriptions","organizations_url":"https://api.github.com/users/BoltzExchange/orgs","repos_url":"https://api.github.com/users/BoltzExchange/repos","events_url":"https://api.github.com/users/BoltzExchange/events{/privacy}","received_events_url":"https://api.github.com/users/BoltzExchange/received_events","type":"Organization","site_admin":false},"repo":{"id":157972348,"node_id":"MDEwOlJlcG9zaXRvcnkxNTc5NzIzNDg=","name":"boltz-frontend","full_name":"BoltzExchange/boltz-frontend","private":false,"owner":{"login":"BoltzExchange","id":44981752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ0OTgxNzUy","avatar_url":"https://avatars0.githubusercontent.com/u/44981752?v=4","gravatar_id":"","url":"https://api.github.com/users/BoltzExchange","html_url":"https://github.com/BoltzExchange","followers_url":"https://api.github.com/users/BoltzExchange/followers","following_url":"https://api.github.com/users/BoltzExchange/following{/other_user}","gists_url":"https://api.github.com/users/BoltzExchange/gists{/gist_id}","starred_url":"https://api.github.com/users/BoltzExchange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoltzExchange/subscriptions","organizations_url":"https://api.github.com/users/BoltzExchange/orgs","repos_url":"https://api.github.com/users/BoltzExchange/repos","events_url":"https://api.github.com/users/BoltzExchange/events{/privacy}","received_events_url":"https://api.github.com/users/BoltzExchange/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/BoltzExchange/boltz-frontend","description":"Frontend of Boltz","fork":false,"url":"https://api.github.com/repos/BoltzExchange/boltz-frontend","forks_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/forks","keys_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/teams","hooks_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/hooks","issue_events_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/events","assignees_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/tags","blobs_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/languages","stargazers_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/stargazers","contributors_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/contributors","subscribers_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/subscribers","subscription_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/subscription","commits_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/merges","archive_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/downloads","issues_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/labels{/name}","releases_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/BoltzExchange/boltz-frontend/deployments","created_at":"2018-11-17T10:05:46Z","updated_at":"2018-11-28T13:24:52Z","pushed_at":"2018-12-02T11:52:08Z","git_url":"git://github.com/BoltzExchange/boltz-frontend.git","ssh_url":"git@github.com:BoltzExchange/boltz-frontend.git","clone_url":"https://github.com/BoltzExchange/boltz-frontend.git","svn_url":"https://github.com/BoltzExchange/boltz-frontend","homepage":"","size":1094,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8"},"html":{"href":"https://github.com/BoltzExchange/boltz-frontend/pull/8"},"issue":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/8"},"comments":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/BoltzExchange/boltz-frontend/statuses/ce70a2349c1245ac030034d3663df351b0aa3664"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"michael1011"}}