{"action":"created","comment":{"url":"https://api.github.com/repos/xlab-si/emmy/pulls/comments/127131766","pull_request_review_id":49682943,"id":127131766,"diff_hunk":"@@ -67,26 +67,35 @@ func LoadDLog(scheme string) *dlog.ZpDLog {\n \treturn &dlog\n }\n \n-func LoadPseudonymsysUserSecret(user string) *big.Int {\n-\tm := viper.GetStringMap(\"pseudonymsys\")\n-\ts, _ := new(big.Int).SetString(m[user].(string), 10)\n+func LoadPseudonymsysUserSecret(user, dlogType string) *big.Int {\n+\tm := viper.GetStringMap(fmt.Sprintf(\"pseudonymsys.%s.%s\", user, dlogType))\n+\ts, _ := new(big.Int).SetString(m[\"secret\"].(string), 10)\n \treturn s\n }\n \n-func LoadPseudonymsysOrgSecrets(orgName string) (*big.Int, *big.Int) {\n-\torg := viper.GetStringMap(fmt.Sprintf(\"pseudonymsys.%s\", orgName))\n+func LoadPseudonymsysOrgSecrets(orgName, dlogType string) (*big.Int, *big.Int) {\n+\torg := viper.GetStringMap(fmt.Sprintf(\"pseudonymsys.%s.%s\", orgName, dlogType))\n \ts1, _ := new(big.Int).SetString(org[\"s1\"].(string), 10)\n \ts2, _ := new(big.Int).SetString(org[\"s2\"].(string), 10)\n \treturn s1, s2\n }\n \n func LoadPseudonymsysOrgPubKeys(orgName string) (*big.Int, *big.Int) {\n-\torg := viper.GetStringMap(fmt.Sprintf(\"pseudonymsys.%s\", orgName))\n+\torg := viper.GetStringMap(fmt.Sprintf(\"pseudonymsys.%s.%s\", orgName, \"dlog\"))\n \th1, _ := new(big.Int).SetString(org[\"h1\"].(string), 10)\n \th2, _ := new(big.Int).SetString(org[\"h2\"].(string), 10)\n \treturn h1, h2\n }\n \n+func LoadPseudonymsysOrgPubKeysEC(orgName string) (*big.Int, *big.Int, *big.Int, *big.Int) {\n+\torg := viper.GetStringMap(fmt.Sprintf(\"pseudonymsys.%s.%s\", orgName, \"ecdlog\"))","path":"config/config.go","position":31,"original_position":31,"commit_id":"c0d500165dc91895a072d2582d236dfc3a82a95a","original_commit_id":"c0d500165dc91895a072d2582d236dfc3a82a95a","user":{"login":"mancabizjak","id":6838306,"avatar_url":"https://avatars2.githubusercontent.com/u/6838306?v=3","gravatar_id":"","url":"https://api.github.com/users/mancabizjak","html_url":"https://github.com/mancabizjak","followers_url":"https://api.github.com/users/mancabizjak/followers","following_url":"https://api.github.com/users/mancabizjak/following{/other_user}","gists_url":"https://api.github.com/users/mancabizjak/gists{/gist_id}","starred_url":"https://api.github.com/users/mancabizjak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mancabizjak/subscriptions","organizations_url":"https://api.github.com/users/mancabizjak/orgs","repos_url":"https://api.github.com/users/mancabizjak/repos","events_url":"https://api.github.com/users/mancabizjak/events{/privacy}","received_events_url":"https://api.github.com/users/mancabizjak/received_events","type":"User","site_admin":false},"body":"You can modify this line with `org := viper.GetStringMap(fmt.Sprintf(\"pseudonymsys.%s.ecdlog\", orgName))`","created_at":"2017-07-13T05:37:16Z","updated_at":"2017-07-13T05:47:57Z","html_url":"https://github.com/xlab-si/emmy/pull/8#discussion_r127131766","pull_request_url":"https://api.github.com/repos/xlab-si/emmy/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/xlab-si/emmy/pulls/comments/127131766"},"html":{"href":"https://github.com/xlab-si/emmy/pull/8#discussion_r127131766"},"pull_request":{"href":"https://api.github.com/repos/xlab-si/emmy/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/xlab-si/emmy/pulls/8","id":130174666,"html_url":"https://github.com/xlab-si/emmy/pull/8","diff_url":"https://github.com/xlab-si/emmy/pull/8.diff","patch_url":"https://github.com/xlab-si/emmy/pull/8.patch","issue_url":"https://api.github.com/repos/xlab-si/emmy/issues/8","number":8,"state":"open","locked":false,"title":"Pseudonym system implemented with elliptic curves.","user":{"login":"miha-stopar","id":2494901,"avatar_url":"https://avatars1.githubusercontent.com/u/2494901?v=3","gravatar_id":"","url":"https://api.github.com/users/miha-stopar","html_url":"https://github.com/miha-stopar","followers_url":"https://api.github.com/users/miha-stopar/followers","following_url":"https://api.github.com/users/miha-stopar/following{/other_user}","gists_url":"https://api.github.com/users/miha-stopar/gists{/gist_id}","starred_url":"https://api.github.com/users/miha-stopar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miha-stopar/subscriptions","organizations_url":"https://api.github.com/users/miha-stopar/orgs","repos_url":"https://api.github.com/users/miha-stopar/repos","events_url":"https://api.github.com/users/miha-stopar/events{/privacy}","received_events_url":"https://api.github.com/users/miha-stopar/received_events","type":"User","site_admin":false},"body":"Primitives like DLogEquality and DLogEqualityBTranscript implemented in EC; pseudonym system implemented in EC; gRPC communication for pseudonym system in EC implemented; minor changes in API of pseudonym system in modular arithmentic.\r\n\r\nSigned-off-by: Miha Stopar <miha.stopar@xlab.si>","created_at":"2017-07-12T15:53:46Z","updated_at":"2017-07-13T05:47:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d74a9e6df59e38b8d76829376c8f5d159d330c0","assignee":{"login":"mancabizjak","id":6838306,"avatar_url":"https://avatars2.githubusercontent.com/u/6838306?v=3","gravatar_id":"","url":"https://api.github.com/users/mancabizjak","html_url":"https://github.com/mancabizjak","followers_url":"https://api.github.com/users/mancabizjak/followers","following_url":"https://api.github.com/users/mancabizjak/following{/other_user}","gists_url":"https://api.github.com/users/mancabizjak/gists{/gist_id}","starred_url":"https://api.github.com/users/mancabizjak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mancabizjak/subscriptions","organizations_url":"https://api.github.com/users/mancabizjak/orgs","repos_url":"https://api.github.com/users/mancabizjak/repos","events_url":"https://api.github.com/users/mancabizjak/events{/privacy}","received_events_url":"https://api.github.com/users/mancabizjak/received_events","type":"User","site_admin":false},"assignees":[{"login":"mancabizjak","id":6838306,"avatar_url":"https://avatars2.githubusercontent.com/u/6838306?v=3","gravatar_id":"","url":"https://api.github.com/users/mancabizjak","html_url":"https://github.com/mancabizjak","followers_url":"https://api.github.com/users/mancabizjak/followers","following_url":"https://api.github.com/users/mancabizjak/following{/other_user}","gists_url":"https://api.github.com/users/mancabizjak/gists{/gist_id}","starred_url":"https://api.github.com/users/mancabizjak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mancabizjak/subscriptions","organizations_url":"https://api.github.com/users/mancabizjak/orgs","repos_url":"https://api.github.com/users/mancabizjak/repos","events_url":"https://api.github.com/users/mancabizjak/events{/privacy}","received_events_url":"https://api.github.com/users/mancabizjak/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/xlab-si/emmy/pulls/8/commits","review_comments_url":"https://api.github.com/repos/xlab-si/emmy/pulls/8/comments","review_comment_url":"https://api.github.com/repos/xlab-si/emmy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xlab-si/emmy/issues/8/comments","statuses_url":"https://api.github.com/repos/xlab-si/emmy/statuses/c0d500165dc91895a072d2582d236dfc3a82a95a","head":{"label":"miha-stopar:elliptic_curves_pseudonymsys","ref":"elliptic_curves_pseudonymsys","sha":"c0d500165dc91895a072d2582d236dfc3a82a95a","user":{"login":"miha-stopar","id":2494901,"avatar_url":"https://avatars1.githubusercontent.com/u/2494901?v=3","gravatar_id":"","url":"https://api.github.com/users/miha-stopar","html_url":"https://github.com/miha-stopar","followers_url":"https://api.github.com/users/miha-stopar/followers","following_url":"https://api.github.com/users/miha-stopar/following{/other_user}","gists_url":"https://api.github.com/users/miha-stopar/gists{/gist_id}","starred_url":"https://api.github.com/users/miha-stopar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miha-stopar/subscriptions","organizations_url":"https://api.github.com/users/miha-stopar/orgs","repos_url":"https://api.github.com/users/miha-stopar/repos","events_url":"https://api.github.com/users/miha-stopar/events{/privacy}","received_events_url":"https://api.github.com/users/miha-stopar/received_events","type":"User","site_admin":false},"repo":{"id":95080802,"name":"emmy","full_name":"miha-stopar/emmy","owner":{"login":"miha-stopar","id":2494901,"avatar_url":"https://avatars1.githubusercontent.com/u/2494901?v=3","gravatar_id":"","url":"https://api.github.com/users/miha-stopar","html_url":"https://github.com/miha-stopar","followers_url":"https://api.github.com/users/miha-stopar/followers","following_url":"https://api.github.com/users/miha-stopar/following{/other_user}","gists_url":"https://api.github.com/users/miha-stopar/gists{/gist_id}","starred_url":"https://api.github.com/users/miha-stopar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miha-stopar/subscriptions","organizations_url":"https://api.github.com/users/miha-stopar/orgs","repos_url":"https://api.github.com/users/miha-stopar/repos","events_url":"https://api.github.com/users/miha-stopar/events{/privacy}","received_events_url":"https://api.github.com/users/miha-stopar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miha-stopar/emmy","description":"Library for zero-knowledge proofs","fork":true,"url":"https://api.github.com/repos/miha-stopar/emmy","forks_url":"https://api.github.com/repos/miha-stopar/emmy/forks","keys_url":"https://api.github.com/repos/miha-stopar/emmy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miha-stopar/emmy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miha-stopar/emmy/teams","hooks_url":"https://api.github.com/repos/miha-stopar/emmy/hooks","issue_events_url":"https://api.github.com/repos/miha-stopar/emmy/issues/events{/number}","events_url":"https://api.github.com/repos/miha-stopar/emmy/events","assignees_url":"https://api.github.com/repos/miha-stopar/emmy/assignees{/user}","branches_url":"https://api.github.com/repos/miha-stopar/emmy/branches{/branch}","tags_url":"https://api.github.com/repos/miha-stopar/emmy/tags","blobs_url":"https://api.github.com/repos/miha-stopar/emmy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miha-stopar/emmy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miha-stopar/emmy/git/refs{/sha}","trees_url":"https://api.github.com/repos/miha-stopar/emmy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miha-stopar/emmy/statuses/{sha}","languages_url":"https://api.github.com/repos/miha-stopar/emmy/languages","stargazers_url":"https://api.github.com/repos/miha-stopar/emmy/stargazers","contributors_url":"https://api.github.com/repos/miha-stopar/emmy/contributors","subscribers_url":"https://api.github.com/repos/miha-stopar/emmy/subscribers","subscription_url":"https://api.github.com/repos/miha-stopar/emmy/subscription","commits_url":"https://api.github.com/repos/miha-stopar/emmy/commits{/sha}","git_commits_url":"https://api.github.com/repos/miha-stopar/emmy/git/commits{/sha}","comments_url":"https://api.github.com/repos/miha-stopar/emmy/comments{/number}","issue_comment_url":"https://api.github.com/repos/miha-stopar/emmy/issues/comments{/number}","contents_url":"https://api.github.com/repos/miha-stopar/emmy/contents/{+path}","compare_url":"https://api.github.com/repos/miha-stopar/emmy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miha-stopar/emmy/merges","archive_url":"https://api.github.com/repos/miha-stopar/emmy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miha-stopar/emmy/downloads","issues_url":"https://api.github.com/repos/miha-stopar/emmy/issues{/number}","pulls_url":"https://api.github.com/repos/miha-stopar/emmy/pulls{/number}","milestones_url":"https://api.github.com/repos/miha-stopar/emmy/milestones{/number}","notifications_url":"https://api.github.com/repos/miha-stopar/emmy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miha-stopar/emmy/labels{/name}","releases_url":"https://api.github.com/repos/miha-stopar/emmy/releases{/id}","deployments_url":"https://api.github.com/repos/miha-stopar/emmy/deployments","created_at":"2017-06-22T06:09:50Z","updated_at":"2017-06-22T06:09:51Z","pushed_at":"2017-07-12T15:51:34Z","git_url":"git://github.com/miha-stopar/emmy.git","ssh_url":"git@github.com:miha-stopar/emmy.git","clone_url":"https://github.com/miha-stopar/emmy.git","svn_url":"https://github.com/miha-stopar/emmy","homepage":null,"size":205,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xlab-si:master","ref":"master","sha":"83306f02947e3e6d5b05c3027d418fa782d4b17c","user":{"login":"xlab-si","id":17640165,"avatar_url":"https://avatars1.githubusercontent.com/u/17640165?v=3","gravatar_id":"","url":"https://api.github.com/users/xlab-si","html_url":"https://github.com/xlab-si","followers_url":"https://api.github.com/users/xlab-si/followers","following_url":"https://api.github.com/users/xlab-si/following{/other_user}","gists_url":"https://api.github.com/users/xlab-si/gists{/gist_id}","starred_url":"https://api.github.com/users/xlab-si/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlab-si/subscriptions","organizations_url":"https://api.github.com/users/xlab-si/orgs","repos_url":"https://api.github.com/users/xlab-si/repos","events_url":"https://api.github.com/users/xlab-si/events{/privacy}","received_events_url":"https://api.github.com/users/xlab-si/received_events","type":"Organization","site_admin":false},"repo":{"id":88985086,"name":"emmy","full_name":"xlab-si/emmy","owner":{"login":"xlab-si","id":17640165,"avatar_url":"https://avatars1.githubusercontent.com/u/17640165?v=3","gravatar_id":"","url":"https://api.github.com/users/xlab-si","html_url":"https://github.com/xlab-si","followers_url":"https://api.github.com/users/xlab-si/followers","following_url":"https://api.github.com/users/xlab-si/following{/other_user}","gists_url":"https://api.github.com/users/xlab-si/gists{/gist_id}","starred_url":"https://api.github.com/users/xlab-si/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xlab-si/subscriptions","organizations_url":"https://api.github.com/users/xlab-si/orgs","repos_url":"https://api.github.com/users/xlab-si/repos","events_url":"https://api.github.com/users/xlab-si/events{/privacy}","received_events_url":"https://api.github.com/users/xlab-si/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xlab-si/emmy","description":"Library for sigma protocols and zero-knowledge proofs","fork":false,"url":"https://api.github.com/repos/xlab-si/emmy","forks_url":"https://api.github.com/repos/xlab-si/emmy/forks","keys_url":"https://api.github.com/repos/xlab-si/emmy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xlab-si/emmy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xlab-si/emmy/teams","hooks_url":"https://api.github.com/repos/xlab-si/emmy/hooks","issue_events_url":"https://api.github.com/repos/xlab-si/emmy/issues/events{/number}","events_url":"https://api.github.com/repos/xlab-si/emmy/events","assignees_url":"https://api.github.com/repos/xlab-si/emmy/assignees{/user}","branches_url":"https://api.github.com/repos/xlab-si/emmy/branches{/branch}","tags_url":"https://api.github.com/repos/xlab-si/emmy/tags","blobs_url":"https://api.github.com/repos/xlab-si/emmy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xlab-si/emmy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xlab-si/emmy/git/refs{/sha}","trees_url":"https://api.github.com/repos/xlab-si/emmy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xlab-si/emmy/statuses/{sha}","languages_url":"https://api.github.com/repos/xlab-si/emmy/languages","stargazers_url":"https://api.github.com/repos/xlab-si/emmy/stargazers","contributors_url":"https://api.github.com/repos/xlab-si/emmy/contributors","subscribers_url":"https://api.github.com/repos/xlab-si/emmy/subscribers","subscription_url":"https://api.github.com/repos/xlab-si/emmy/subscription","commits_url":"https://api.github.com/repos/xlab-si/emmy/commits{/sha}","git_commits_url":"https://api.github.com/repos/xlab-si/emmy/git/commits{/sha}","comments_url":"https://api.github.com/repos/xlab-si/emmy/comments{/number}","issue_comment_url":"https://api.github.com/repos/xlab-si/emmy/issues/comments{/number}","contents_url":"https://api.github.com/repos/xlab-si/emmy/contents/{+path}","compare_url":"https://api.github.com/repos/xlab-si/emmy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xlab-si/emmy/merges","archive_url":"https://api.github.com/repos/xlab-si/emmy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xlab-si/emmy/downloads","issues_url":"https://api.github.com/repos/xlab-si/emmy/issues{/number}","pulls_url":"https://api.github.com/repos/xlab-si/emmy/pulls{/number}","milestones_url":"https://api.github.com/repos/xlab-si/emmy/milestones{/number}","notifications_url":"https://api.github.com/repos/xlab-si/emmy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xlab-si/emmy/labels{/name}","releases_url":"https://api.github.com/repos/xlab-si/emmy/releases{/id}","deployments_url":"https://api.github.com/repos/xlab-si/emmy/deployments","created_at":"2017-04-21T13:10:58Z","updated_at":"2017-07-10T12:03:14Z","pushed_at":"2017-07-12T15:53:46Z","git_url":"git://github.com/xlab-si/emmy.git","ssh_url":"git@github.com:xlab-si/emmy.git","clone_url":"https://github.com/xlab-si/emmy.git","svn_url":"https://github.com/xlab-si/emmy","homepage":"","size":181,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xlab-si/emmy/pulls/8"},"html":{"href":"https://github.com/xlab-si/emmy/pull/8"},"issue":{"href":"https://api.github.com/repos/xlab-si/emmy/issues/8"},"comments":{"href":"https://api.github.com/repos/xlab-si/emmy/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/xlab-si/emmy/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/xlab-si/emmy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xlab-si/emmy/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/xlab-si/emmy/statuses/c0d500165dc91895a072d2582d236dfc3a82a95a"}}}}
{"actor":{"display_login":"mancabizjak"}}