{"action":"created","comment":{"url":"https://api.github.com/repos/elastos/Elastos.RT/pulls/comments/202504127","pull_request_review_id":137226871,"id":202504127,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjUwNDEyNw==","diff_hunk":"@@ -0,0 +1,141 @@\n+//=========================================================================\n+// Copyright (C) 2018 The Elastos Open Source Project\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//      http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// Unless required by applicable law or agreed to in writing, software\n+// distributed under the License is distributed on an \"AS IS\" BASIS,\n+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+// See the License for the specific language governing permissions and\n+// limitations under the License.\n+//=========================================================================\n+\n+module\n+{\n+    importlib(\"Elastos.CoreLibrary\");\n+    importlib(\"Elastos.Wallet\");\n+\n+\n+    interface IDID {\n+        GetDIDName (\n+            [out] String* did);\n+\n+        SetValue (\n+            [in] String keyPath,\n+            [in] String valueJson);\n+\n+        GetValue (\n+            [in] String keyPath,\n+            [out] String* valueJson);\n+\n+        GetHistoryValue (\n+            [in] String keyPath,\n+            [out] String* valuesListJson);\n+\n+        GetAllKeys (\n+            [in] Int32 start,\n+            [in] Int32 count,\n+            [out] String* keyListJson);\n+\n+        Sign (\n+            [in] String message,\n+            [in] String password,\n+            [out] String* signature);\n+\n+        GenerateProgram(\n+            [in] String message,\n+            [in] String password,\n+            [out] String* resultJson);\n+\n+        CheckSign (\n+            [in] String message,\n+            [in] String signature,\n+            [out] String* resultJson);\n+\n+        GetPublicKey(\n+            [out] String* publicKey);\n+    }\n+\n+    interface IDIDManagerCallback {\n+        OnIdStatusChanged(\n+            [in] String id,\n+            [in] String path,\n+            [in] String valueJson);\n+    }\n+\n+    interface IDIDManager {\n+        CreateDID (\n+            [in] String password,\n+            [out] IDID** did);\n+\n+        GetDID (\n+            [in] String didName,\n+            [out] IDID** did);\n+\n+        GetDIDList (\n+            [out] String* didListJson);\n+\n+        DestoryDID (\n+            [in] String did);\n+\n+        RegisterCallback(\n+            [in] String did,\n+            [in] IDIDManagerCallback* didcallback);\n+\n+        UnregisterCallback(\n+            [in] String did);\n+    }\n+\n+    interface IDIDChecker {\n+        GetValue (\n+            [in] String did,\n+            [in] String keyPath,\n+            [out] String* valueJson);\n+\n+        GetHistoryValue (\n+            [in] String did,\n+            [in] String keyPath,\n+            [out] String* valueListJson);\n+\n+        GetAllKeys (\n+            [in] String did,\n+            [in] Int32 start,\n+            [in] Int32 count,\n+            [out] String* keyListJson);\n+\n+        GetPublicKey(\n+            [in] String did,\n+            [out] String* publicKey);\n+\n+        CheckSign (\n+            [in] String did,\n+            [in] String publicKey,\n+            [in] String message,\n+            [in] String signature,\n+            [out] String* resultJson);\n+\n+        CheckDID (\n+            [in] String did,\n+            [in] String nonce,\n+            [in] String appid,\n+            [in] String declaration,\n+            [in] String password,\n+            [out] String* resultJson);\n+    }\n+\n+    class CDidChecker {","path":"Sources/Elastos/Blockchain/Did/Elastos.Did.car","position":130,"original_position":130,"commit_id":"92c8f6a6393d471d2c69bb3ceb5ec143cd7b1305","original_commit_id":"92c8f6a6393d471d2c69bb3ceb5ec143cd7b1305","user":{"login":"zuohuahua","id":34299909,"node_id":"MDQ6VXNlcjM0Mjk5OTA5","avatar_url":"https://avatars1.githubusercontent.com/u/34299909?v=4","gravatar_id":"","url":"https://api.github.com/users/zuohuahua","html_url":"https://github.com/zuohuahua","followers_url":"https://api.github.com/users/zuohuahua/followers","following_url":"https://api.github.com/users/zuohuahua/following{/other_user}","gists_url":"https://api.github.com/users/zuohuahua/gists{/gist_id}","starred_url":"https://api.github.com/users/zuohuahua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zuohuahua/subscriptions","organizations_url":"https://api.github.com/users/zuohuahua/orgs","repos_url":"https://api.github.com/users/zuohuahua/repos","events_url":"https://api.github.com/users/zuohuahua/events{/privacy}","received_events_url":"https://api.github.com/users/zuohuahua/received_events","type":"User","site_admin":false},"body":"CDIDChecker maybe better","created_at":"2018-07-14T03:04:23Z","updated_at":"2018-07-14T03:04:54Z","html_url":"https://github.com/elastos/Elastos.RT/pull/259#discussion_r202504127","pull_request_url":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/elastos/Elastos.RT/pulls/comments/202504127"},"html":{"href":"https://github.com/elastos/Elastos.RT/pull/259#discussion_r202504127"},"pull_request":{"href":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259"}}},"pull_request":{"url":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259","id":201263090,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMjYzMDkw","html_url":"https://github.com/elastos/Elastos.RT/pull/259","diff_url":"https://github.com/elastos/Elastos.RT/pull/259.diff","patch_url":"https://github.com/elastos/Elastos.RT/pull/259.patch","issue_url":"https://api.github.com/repos/elastos/Elastos.RT/issues/259","number":259,"state":"open","locked":false,"title":"Implement the Elastos did according spv's did interfaces.","user":{"login":"zhaowanli2","id":30951920,"node_id":"MDQ6VXNlcjMwOTUxOTIw","avatar_url":"https://avatars3.githubusercontent.com/u/30951920?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaowanli2","html_url":"https://github.com/zhaowanli2","followers_url":"https://api.github.com/users/zhaowanli2/followers","following_url":"https://api.github.com/users/zhaowanli2/following{/other_user}","gists_url":"https://api.github.com/users/zhaowanli2/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaowanli2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaowanli2/subscriptions","organizations_url":"https://api.github.com/users/zhaowanli2/orgs","repos_url":"https://api.github.com/users/zhaowanli2/repos","events_url":"https://api.github.com/users/zhaowanli2/events{/privacy}","received_events_url":"https://api.github.com/users/zhaowanli2/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-13T11:23:34Z","updated_at":"2018-07-14T03:04:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"285c6abc272d46c02d9035ed3f8c2cb4e57f1fb3","assignee":null,"assignees":[],"requested_reviewers":[{"login":"songsjun","id":14164796,"node_id":"MDQ6VXNlcjE0MTY0Nzk2","avatar_url":"https://avatars1.githubusercontent.com/u/14164796?v=4","gravatar_id":"","url":"https://api.github.com/users/songsjun","html_url":"https://github.com/songsjun","followers_url":"https://api.github.com/users/songsjun/followers","following_url":"https://api.github.com/users/songsjun/following{/other_user}","gists_url":"https://api.github.com/users/songsjun/gists{/gist_id}","starred_url":"https://api.github.com/users/songsjun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/songsjun/subscriptions","organizations_url":"https://api.github.com/users/songsjun/orgs","repos_url":"https://api.github.com/users/songsjun/repos","events_url":"https://api.github.com/users/songsjun/events{/privacy}","received_events_url":"https://api.github.com/users/songsjun/received_events","type":"User","site_admin":false},{"login":"xuliting","id":18321471,"node_id":"MDQ6VXNlcjE4MzIxNDcx","avatar_url":"https://avatars2.githubusercontent.com/u/18321471?v=4","gravatar_id":"","url":"https://api.github.com/users/xuliting","html_url":"https://github.com/xuliting","followers_url":"https://api.github.com/users/xuliting/followers","following_url":"https://api.github.com/users/xuliting/following{/other_user}","gists_url":"https://api.github.com/users/xuliting/gists{/gist_id}","starred_url":"https://api.github.com/users/xuliting/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuliting/subscriptions","organizations_url":"https://api.github.com/users/xuliting/orgs","repos_url":"https://api.github.com/users/xuliting/repos","events_url":"https://api.github.com/users/xuliting/events{/privacy}","received_events_url":"https://api.github.com/users/xuliting/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259/commits","review_comments_url":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259/comments","review_comment_url":"https://api.github.com/repos/elastos/Elastos.RT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/elastos/Elastos.RT/issues/259/comments","statuses_url":"https://api.github.com/repos/elastos/Elastos.RT/statuses/92c8f6a6393d471d2c69bb3ceb5ec143cd7b1305","head":{"label":"zhaowanli2:car_wallet_and_did","ref":"car_wallet_and_did","sha":"92c8f6a6393d471d2c69bb3ceb5ec143cd7b1305","user":{"login":"zhaowanli2","id":30951920,"node_id":"MDQ6VXNlcjMwOTUxOTIw","avatar_url":"https://avatars3.githubusercontent.com/u/30951920?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaowanli2","html_url":"https://github.com/zhaowanli2","followers_url":"https://api.github.com/users/zhaowanli2/followers","following_url":"https://api.github.com/users/zhaowanli2/following{/other_user}","gists_url":"https://api.github.com/users/zhaowanli2/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaowanli2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaowanli2/subscriptions","organizations_url":"https://api.github.com/users/zhaowanli2/orgs","repos_url":"https://api.github.com/users/zhaowanli2/repos","events_url":"https://api.github.com/users/zhaowanli2/events{/privacy}","received_events_url":"https://api.github.com/users/zhaowanli2/received_events","type":"User","site_admin":false},"repo":{"id":104174320,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQxNzQzMjA=","name":"Elastos.RT","full_name":"zhaowanli2/Elastos.RT","owner":{"login":"zhaowanli2","id":30951920,"node_id":"MDQ6VXNlcjMwOTUxOTIw","avatar_url":"https://avatars3.githubusercontent.com/u/30951920?v=4","gravatar_id":"","url":"https://api.github.com/users/zhaowanli2","html_url":"https://github.com/zhaowanli2","followers_url":"https://api.github.com/users/zhaowanli2/followers","following_url":"https://api.github.com/users/zhaowanli2/following{/other_user}","gists_url":"https://api.github.com/users/zhaowanli2/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaowanli2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaowanli2/subscriptions","organizations_url":"https://api.github.com/users/zhaowanli2/orgs","repos_url":"https://api.github.com/users/zhaowanli2/repos","events_url":"https://api.github.com/users/zhaowanli2/events{/privacy}","received_events_url":"https://api.github.com/users/zhaowanli2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhaowanli2/Elastos.RT","description":"Guest Runtime as an App Engine","fork":true,"url":"https://api.github.com/repos/zhaowanli2/Elastos.RT","forks_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/forks","keys_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/teams","hooks_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/hooks","issue_events_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/issues/events{/number}","events_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/events","assignees_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/assignees{/user}","branches_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/branches{/branch}","tags_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/tags","blobs_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/statuses/{sha}","languages_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/languages","stargazers_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/stargazers","contributors_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/contributors","subscribers_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/subscribers","subscription_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/subscription","commits_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/contents/{+path}","compare_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/merges","archive_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/downloads","issues_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/issues{/number}","pulls_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/pulls{/number}","milestones_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/milestones{/number}","notifications_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/labels{/name}","releases_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/releases{/id}","deployments_url":"https://api.github.com/repos/zhaowanli2/Elastos.RT/deployments","created_at":"2017-09-20T06:20:36Z","updated_at":"2018-07-13T03:06:54Z","pushed_at":"2018-07-13T11:22:50Z","git_url":"git://github.com/zhaowanli2/Elastos.RT.git","ssh_url":"git@github.com:zhaowanli2/Elastos.RT.git","clone_url":"https://github.com/zhaowanli2/Elastos.RT.git","svn_url":"https://github.com/zhaowanli2/Elastos.RT","homepage":"","size":205656,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"elastos:master","ref":"master","sha":"089e55dc410b01c4cadf47a3e2306c26b539b009","user":{"login":"elastos","id":11608578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjA4NTc4","avatar_url":"https://avatars3.githubusercontent.com/u/11608578?v=4","gravatar_id":"","url":"https://api.github.com/users/elastos","html_url":"https://github.com/elastos","followers_url":"https://api.github.com/users/elastos/followers","following_url":"https://api.github.com/users/elastos/following{/other_user}","gists_url":"https://api.github.com/users/elastos/gists{/gist_id}","starred_url":"https://api.github.com/users/elastos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastos/subscriptions","organizations_url":"https://api.github.com/users/elastos/orgs","repos_url":"https://api.github.com/users/elastos/repos","events_url":"https://api.github.com/users/elastos/events{/privacy}","received_events_url":"https://api.github.com/users/elastos/received_events","type":"Organization","site_admin":false},"repo":{"id":96395416,"node_id":"MDEwOlJlcG9zaXRvcnk5NjM5NTQxNg==","name":"Elastos.RT","full_name":"elastos/Elastos.RT","owner":{"login":"elastos","id":11608578,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExNjA4NTc4","avatar_url":"https://avatars3.githubusercontent.com/u/11608578?v=4","gravatar_id":"","url":"https://api.github.com/users/elastos","html_url":"https://github.com/elastos","followers_url":"https://api.github.com/users/elastos/followers","following_url":"https://api.github.com/users/elastos/following{/other_user}","gists_url":"https://api.github.com/users/elastos/gists{/gist_id}","starred_url":"https://api.github.com/users/elastos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elastos/subscriptions","organizations_url":"https://api.github.com/users/elastos/orgs","repos_url":"https://api.github.com/users/elastos/repos","events_url":"https://api.github.com/users/elastos/events{/privacy}","received_events_url":"https://api.github.com/users/elastos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/elastos/Elastos.RT","description":"Guest Runtime as an App Engine","fork":false,"url":"https://api.github.com/repos/elastos/Elastos.RT","forks_url":"https://api.github.com/repos/elastos/Elastos.RT/forks","keys_url":"https://api.github.com/repos/elastos/Elastos.RT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/elastos/Elastos.RT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/elastos/Elastos.RT/teams","hooks_url":"https://api.github.com/repos/elastos/Elastos.RT/hooks","issue_events_url":"https://api.github.com/repos/elastos/Elastos.RT/issues/events{/number}","events_url":"https://api.github.com/repos/elastos/Elastos.RT/events","assignees_url":"https://api.github.com/repos/elastos/Elastos.RT/assignees{/user}","branches_url":"https://api.github.com/repos/elastos/Elastos.RT/branches{/branch}","tags_url":"https://api.github.com/repos/elastos/Elastos.RT/tags","blobs_url":"https://api.github.com/repos/elastos/Elastos.RT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/elastos/Elastos.RT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/elastos/Elastos.RT/git/refs{/sha}","trees_url":"https://api.github.com/repos/elastos/Elastos.RT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/elastos/Elastos.RT/statuses/{sha}","languages_url":"https://api.github.com/repos/elastos/Elastos.RT/languages","stargazers_url":"https://api.github.com/repos/elastos/Elastos.RT/stargazers","contributors_url":"https://api.github.com/repos/elastos/Elastos.RT/contributors","subscribers_url":"https://api.github.com/repos/elastos/Elastos.RT/subscribers","subscription_url":"https://api.github.com/repos/elastos/Elastos.RT/subscription","commits_url":"https://api.github.com/repos/elastos/Elastos.RT/commits{/sha}","git_commits_url":"https://api.github.com/repos/elastos/Elastos.RT/git/commits{/sha}","comments_url":"https://api.github.com/repos/elastos/Elastos.RT/comments{/number}","issue_comment_url":"https://api.github.com/repos/elastos/Elastos.RT/issues/comments{/number}","contents_url":"https://api.github.com/repos/elastos/Elastos.RT/contents/{+path}","compare_url":"https://api.github.com/repos/elastos/Elastos.RT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/elastos/Elastos.RT/merges","archive_url":"https://api.github.com/repos/elastos/Elastos.RT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/elastos/Elastos.RT/downloads","issues_url":"https://api.github.com/repos/elastos/Elastos.RT/issues{/number}","pulls_url":"https://api.github.com/repos/elastos/Elastos.RT/pulls{/number}","milestones_url":"https://api.github.com/repos/elastos/Elastos.RT/milestones{/number}","notifications_url":"https://api.github.com/repos/elastos/Elastos.RT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/elastos/Elastos.RT/labels{/name}","releases_url":"https://api.github.com/repos/elastos/Elastos.RT/releases{/id}","deployments_url":"https://api.github.com/repos/elastos/Elastos.RT/deployments","created_at":"2017-07-06T06:19:04Z","updated_at":"2018-07-14T02:28:42Z","pushed_at":"2018-07-14T02:28:40Z","git_url":"git://github.com/elastos/Elastos.RT.git","ssh_url":"git@github.com:elastos/Elastos.RT.git","clone_url":"https://github.com/elastos/Elastos.RT.git","svn_url":"https://github.com/elastos/Elastos.RT","homepage":"https://elastos.org","size":192267,"stargazers_count":31,"watchers_count":31,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":27,"open_issues":4,"watchers":31,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259"},"html":{"href":"https://github.com/elastos/Elastos.RT/pull/259"},"issue":{"href":"https://api.github.com/repos/elastos/Elastos.RT/issues/259"},"comments":{"href":"https://api.github.com/repos/elastos/Elastos.RT/issues/259/comments"},"review_comments":{"href":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259/comments"},"review_comment":{"href":"https://api.github.com/repos/elastos/Elastos.RT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/elastos/Elastos.RT/pulls/259/commits"},"statuses":{"href":"https://api.github.com/repos/elastos/Elastos.RT/statuses/92c8f6a6393d471d2c69bb3ceb5ec143cd7b1305"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zuohuahua"}}