{"action":"created","comment":{"url":"https://api.github.com/repos/MysteriumNetwork/node/pulls/comments/207868570","pull_request_review_id":143563952,"id":207868570,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzg2ODU3MA==","diff_hunk":"@@ -0,0 +1,147 @@\n+/*\n+ * Copyright (C) 2017 The \"MysteriumNetwork/node\" Authors.\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+package registry\n+\n+import (\n+\t\"github.com/ethereum/go-ethereum/common\"\n+\t\"github.com/julienschmidt/httprouter\"\n+\t\"github.com/mysterium/node/tequilapi/utils\"\n+\t\"net/http\"\n+)\n+\n+// SignatureDTO represents Elliptic Curve signature parts\n+//\n+// swagger:model DecomposedSignatureDTO\n+type SignatureDTO struct {\n+\t// S part of signature\n+\t// example: \"0x1321313212312...\"\n+\tR string\n+\t// R part of signature\n+\t// example: \"0x1234563564354...\"\n+\tS string\n+\t// Sign - 27 or 28 as expected by ethereum ecrecover function\n+\t// example: 27\n+\tV uint8\n+}\n+\n+// PublicKeyPartsDTO represents ECDSA public key with first byte stripped (0x04) and splitted into two 32 bytes size arrays\n+//\n+// swagger:model PublicKeyPartsDTO\n+type PublicKeyPartsDTO struct {\n+\t// First 32 bytes of public key in hex representation\n+\t// example: \"0x1321313212312...\"\n+\tPart1 string\n+\t// Last 32 bytes of public key inx hex representation\n+\t// example: \"0x1321313212312...\"\n+\tPart2 string\n+}\n+\n+// RegistrationDataDTO represents registration status and needed data for registering of given identity\n+//\n+// swagger:model RegistrationDataDTO\n+type RegistrationDataDTO struct {\n+\t// Returns true if identity is registered in payments smart contract\n+\tRegistered bool\n+\n+\tPublicKey *PublicKeyPartsDTO `json:\"PublicKey,omitempty\"`","path":"identity/registry/endpoints.go","position":61,"original_position":61,"commit_id":"3836a014b7927e4c7a145d73cc89fd7a1df68fe2","original_commit_id":"3836a014b7927e4c7a145d73cc89fd7a1df68fe2","user":{"login":"mipo47","id":3993537,"node_id":"MDQ6VXNlcjM5OTM1Mzc=","avatar_url":"https://avatars1.githubusercontent.com/u/3993537?v=4","gravatar_id":"","url":"https://api.github.com/users/mipo47","html_url":"https://github.com/mipo47","followers_url":"https://api.github.com/users/mipo47/followers","following_url":"https://api.github.com/users/mipo47/following{/other_user}","gists_url":"https://api.github.com/users/mipo47/gists{/gist_id}","starred_url":"https://api.github.com/users/mipo47/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mipo47/subscriptions","organizations_url":"https://api.github.com/users/mipo47/orgs","repos_url":"https://api.github.com/users/mipo47/repos","events_url":"https://api.github.com/users/mipo47/events{/privacy}","received_events_url":"https://api.github.com/users/mipo47/received_events","type":"User","site_admin":false},"body":"To keep same styling, let's start JSON values names from lower case:\r\nPublicKey -> publicKey\r\nSignature -> signature","created_at":"2018-08-06T12:11:01Z","updated_at":"2018-08-06T12:11:02Z","html_url":"https://github.com/MysteriumNetwork/node/pull/310#discussion_r207868570","pull_request_url":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MysteriumNetwork/node/pulls/comments/207868570"},"html":{"href":"https://github.com/MysteriumNetwork/node/pull/310#discussion_r207868570"},"pull_request":{"href":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310"}}},"pull_request":{"url":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310","id":205402734,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NDAyNzM0","html_url":"https://github.com/MysteriumNetwork/node/pull/310","diff_url":"https://github.com/MysteriumNetwork/node/pull/310.diff","patch_url":"https://github.com/MysteriumNetwork/node/pull/310.patch","issue_url":"https://api.github.com/repos/MysteriumNetwork/node/issues/310","number":310,"state":"open","locked":false,"title":"Feature/myst 586 endpoint with identity registration status","user":{"login":"tadovas","id":1046590,"node_id":"MDQ6VXNlcjEwNDY1OTA=","avatar_url":"https://avatars3.githubusercontent.com/u/1046590?v=4","gravatar_id":"","url":"https://api.github.com/users/tadovas","html_url":"https://github.com/tadovas","followers_url":"https://api.github.com/users/tadovas/followers","following_url":"https://api.github.com/users/tadovas/following{/other_user}","gists_url":"https://api.github.com/users/tadovas/gists{/gist_id}","starred_url":"https://api.github.com/users/tadovas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tadovas/subscriptions","organizations_url":"https://api.github.com/users/tadovas/orgs","repos_url":"https://api.github.com/users/tadovas/repos","events_url":"https://api.github.com/users/tadovas/events{/privacy}","received_events_url":"https://api.github.com/users/tadovas/received_events","type":"User","site_admin":false},"body":"1. New tequila api endpoint /identities/<id>/registration provides registration status and required data for identity registration if needed (smart contract call)\r\n2. Localnet now contains private blockchain with the same state on startup\r\n3. E2e tests enriched with identity registration greenpath, also no ports are published/bound on host - e2e tests are fully isolated inside docker","created_at":"2018-08-01T12:05:26Z","updated_at":"2018-08-06T12:11:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fcc9687255178dbbbd93296ddf745434718ee18","assignee":null,"assignees":[],"requested_reviewers":[{"login":"donce","id":1409983,"node_id":"MDQ6VXNlcjE0MDk5ODM=","avatar_url":"https://avatars0.githubusercontent.com/u/1409983?v=4","gravatar_id":"","url":"https://api.github.com/users/donce","html_url":"https://github.com/donce","followers_url":"https://api.github.com/users/donce/followers","following_url":"https://api.github.com/users/donce/following{/other_user}","gists_url":"https://api.github.com/users/donce/gists{/gist_id}","starred_url":"https://api.github.com/users/donce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donce/subscriptions","organizations_url":"https://api.github.com/users/donce/orgs","repos_url":"https://api.github.com/users/donce/repos","events_url":"https://api.github.com/users/donce/events{/privacy}","received_events_url":"https://api.github.com/users/donce/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310/commits","review_comments_url":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310/comments","review_comment_url":"https://api.github.com/repos/MysteriumNetwork/node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MysteriumNetwork/node/issues/310/comments","statuses_url":"https://api.github.com/repos/MysteriumNetwork/node/statuses/3836a014b7927e4c7a145d73cc89fd7a1df68fe2","head":{"label":"MysteriumNetwork:feature/MYST-586-endpoint-with-identity-registration-status","ref":"feature/MYST-586-endpoint-with-identity-registration-status","sha":"3836a014b7927e4c7a145d73cc89fd7a1df68fe2","user":{"login":"MysteriumNetwork","id":23056638,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU2NjM4","avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":80073079,"node_id":"MDEwOlJlcG9zaXRvcnk4MDA3MzA3OQ==","name":"node","full_name":"MysteriumNetwork/node","owner":{"login":"MysteriumNetwork","id":23056638,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU2NjM4","avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MysteriumNetwork/node","description":"Mysterium Node - VPN server and client for Mysterium Network","fork":false,"url":"https://api.github.com/repos/MysteriumNetwork/node","forks_url":"https://api.github.com/repos/MysteriumNetwork/node/forks","keys_url":"https://api.github.com/repos/MysteriumNetwork/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MysteriumNetwork/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MysteriumNetwork/node/teams","hooks_url":"https://api.github.com/repos/MysteriumNetwork/node/hooks","issue_events_url":"https://api.github.com/repos/MysteriumNetwork/node/issues/events{/number}","events_url":"https://api.github.com/repos/MysteriumNetwork/node/events","assignees_url":"https://api.github.com/repos/MysteriumNetwork/node/assignees{/user}","branches_url":"https://api.github.com/repos/MysteriumNetwork/node/branches{/branch}","tags_url":"https://api.github.com/repos/MysteriumNetwork/node/tags","blobs_url":"https://api.github.com/repos/MysteriumNetwork/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MysteriumNetwork/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MysteriumNetwork/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/MysteriumNetwork/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MysteriumNetwork/node/statuses/{sha}","languages_url":"https://api.github.com/repos/MysteriumNetwork/node/languages","stargazers_url":"https://api.github.com/repos/MysteriumNetwork/node/stargazers","contributors_url":"https://api.github.com/repos/MysteriumNetwork/node/contributors","subscribers_url":"https://api.github.com/repos/MysteriumNetwork/node/subscribers","subscription_url":"https://api.github.com/repos/MysteriumNetwork/node/subscription","commits_url":"https://api.github.com/repos/MysteriumNetwork/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/MysteriumNetwork/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/MysteriumNetwork/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/MysteriumNetwork/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/MysteriumNetwork/node/contents/{+path}","compare_url":"https://api.github.com/repos/MysteriumNetwork/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MysteriumNetwork/node/merges","archive_url":"https://api.github.com/repos/MysteriumNetwork/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MysteriumNetwork/node/downloads","issues_url":"https://api.github.com/repos/MysteriumNetwork/node/issues{/number}","pulls_url":"https://api.github.com/repos/MysteriumNetwork/node/pulls{/number}","milestones_url":"https://api.github.com/repos/MysteriumNetwork/node/milestones{/number}","notifications_url":"https://api.github.com/repos/MysteriumNetwork/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MysteriumNetwork/node/labels{/name}","releases_url":"https://api.github.com/repos/MysteriumNetwork/node/releases{/id}","deployments_url":"https://api.github.com/repos/MysteriumNetwork/node/deployments","created_at":"2017-01-26T00:43:08Z","updated_at":"2018-08-04T17:50:06Z","pushed_at":"2018-08-06T11:24:40Z","git_url":"git://github.com/MysteriumNetwork/node.git","ssh_url":"git@github.com:MysteriumNetwork/node.git","clone_url":"https://github.com/MysteriumNetwork/node.git","svn_url":"https://github.com/MysteriumNetwork/node","homepage":"https://mysterium.network/","size":8610,"stargazers_count":449,"watchers_count":449,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":70,"open_issues":22,"watchers":449,"default_branch":"master"}},"base":{"label":"MysteriumNetwork:master","ref":"master","sha":"b5daee7664314d9061b334461c2e85c016e032fc","user":{"login":"MysteriumNetwork","id":23056638,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU2NjM4","avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":80073079,"node_id":"MDEwOlJlcG9zaXRvcnk4MDA3MzA3OQ==","name":"node","full_name":"MysteriumNetwork/node","owner":{"login":"MysteriumNetwork","id":23056638,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMDU2NjM4","avatar_url":"https://avatars3.githubusercontent.com/u/23056638?v=4","gravatar_id":"","url":"https://api.github.com/users/MysteriumNetwork","html_url":"https://github.com/MysteriumNetwork","followers_url":"https://api.github.com/users/MysteriumNetwork/followers","following_url":"https://api.github.com/users/MysteriumNetwork/following{/other_user}","gists_url":"https://api.github.com/users/MysteriumNetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/MysteriumNetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MysteriumNetwork/subscriptions","organizations_url":"https://api.github.com/users/MysteriumNetwork/orgs","repos_url":"https://api.github.com/users/MysteriumNetwork/repos","events_url":"https://api.github.com/users/MysteriumNetwork/events{/privacy}","received_events_url":"https://api.github.com/users/MysteriumNetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MysteriumNetwork/node","description":"Mysterium Node - VPN server and client for Mysterium Network","fork":false,"url":"https://api.github.com/repos/MysteriumNetwork/node","forks_url":"https://api.github.com/repos/MysteriumNetwork/node/forks","keys_url":"https://api.github.com/repos/MysteriumNetwork/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MysteriumNetwork/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MysteriumNetwork/node/teams","hooks_url":"https://api.github.com/repos/MysteriumNetwork/node/hooks","issue_events_url":"https://api.github.com/repos/MysteriumNetwork/node/issues/events{/number}","events_url":"https://api.github.com/repos/MysteriumNetwork/node/events","assignees_url":"https://api.github.com/repos/MysteriumNetwork/node/assignees{/user}","branches_url":"https://api.github.com/repos/MysteriumNetwork/node/branches{/branch}","tags_url":"https://api.github.com/repos/MysteriumNetwork/node/tags","blobs_url":"https://api.github.com/repos/MysteriumNetwork/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MysteriumNetwork/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MysteriumNetwork/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/MysteriumNetwork/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MysteriumNetwork/node/statuses/{sha}","languages_url":"https://api.github.com/repos/MysteriumNetwork/node/languages","stargazers_url":"https://api.github.com/repos/MysteriumNetwork/node/stargazers","contributors_url":"https://api.github.com/repos/MysteriumNetwork/node/contributors","subscribers_url":"https://api.github.com/repos/MysteriumNetwork/node/subscribers","subscription_url":"https://api.github.com/repos/MysteriumNetwork/node/subscription","commits_url":"https://api.github.com/repos/MysteriumNetwork/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/MysteriumNetwork/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/MysteriumNetwork/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/MysteriumNetwork/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/MysteriumNetwork/node/contents/{+path}","compare_url":"https://api.github.com/repos/MysteriumNetwork/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MysteriumNetwork/node/merges","archive_url":"https://api.github.com/repos/MysteriumNetwork/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MysteriumNetwork/node/downloads","issues_url":"https://api.github.com/repos/MysteriumNetwork/node/issues{/number}","pulls_url":"https://api.github.com/repos/MysteriumNetwork/node/pulls{/number}","milestones_url":"https://api.github.com/repos/MysteriumNetwork/node/milestones{/number}","notifications_url":"https://api.github.com/repos/MysteriumNetwork/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MysteriumNetwork/node/labels{/name}","releases_url":"https://api.github.com/repos/MysteriumNetwork/node/releases{/id}","deployments_url":"https://api.github.com/repos/MysteriumNetwork/node/deployments","created_at":"2017-01-26T00:43:08Z","updated_at":"2018-08-04T17:50:06Z","pushed_at":"2018-08-06T11:24:40Z","git_url":"git://github.com/MysteriumNetwork/node.git","ssh_url":"git@github.com:MysteriumNetwork/node.git","clone_url":"https://github.com/MysteriumNetwork/node.git","svn_url":"https://github.com/MysteriumNetwork/node","homepage":"https://mysterium.network/","size":8610,"stargazers_count":449,"watchers_count":449,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"archived":false,"open_issues_count":22,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":70,"open_issues":22,"watchers":449,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310"},"html":{"href":"https://github.com/MysteriumNetwork/node/pull/310"},"issue":{"href":"https://api.github.com/repos/MysteriumNetwork/node/issues/310"},"comments":{"href":"https://api.github.com/repos/MysteriumNetwork/node/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/MysteriumNetwork/node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MysteriumNetwork/node/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/MysteriumNetwork/node/statuses/3836a014b7927e4c7a145d73cc89fd7a1df68fe2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"mipo47"}}