{"action":"created","comment":{"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments/38829331","id":38829331,"diff_hunk":"@@ -0,0 +1,42 @@\n+define 'kryptnostic.object-search-key-api', [\n+  'require'\n+  'kryptnostic.logger'\n+  'kryptnostic.requests'\n+  'kryptnostic.configuration'\n+], (require) ->\n+\n+  Logger             = require 'kryptnostic.logger'\n+  Requests           = require 'kryptnostic.requests'\n+  Configuration      = require 'kryptnostic.configuration'\n+\n+  indexingServiceUrl = -> Configuration.get('servicesUrl') + '/indexing'\n+  sharingPairUrl     = -> indexingServiceUrl() + '/sharingPair'\n+  objectMetadataUrl  = -> indexingServiceUrl() + '/metadata'\n+  indexPairUrl       = -> indexingServiceUrl() + '/indexPair'\n+  addressFunctionUrl = -> indexingServiceUrl() + '/address'\n+\n+  log = Logger.get('ObjectSearchKeyApi')\n+\n+  #\n+  # HTTP calls for submitting object address functions, search keys, and conversion matrices.\n+  # Author: rbuckheit\n+  #\n+  class ObjectSearchKeyApi\n+\n+    # input: uint8 representation of addres matrix, encrypted and serialized by SearchKeySerializer.\n+    uploadAddressFunction: ( id, uint8 ) ->\n+      Requests.postUint8ToUrl(addressFunctionUrl() + '/' + id, uint8)\n+      .then (response) ->\n+        log.info('uploadAddressFunction', { id } )\n+        return response.data\n+\n+    uploadSharingPair: ( id, sharingPairBlob ) ->\n+      Requests.postUint8ToUrl(sharingPairUrl() + '/' + id, sharingPairBlob )\n+      .then (response) ->\n+        log.info('uploadSharingPair', { id } )\n+        return response.data\n+\n+    getIndexPair: ( id ) ->","path":"js/src/http/ObjectSearchKeyApi.coffee","position":39,"original_position":39,"commit_id":"5a9a9f12166e715f0d1f71881b80777074d7840a","original_commit_id":"5a9a9f12166e715f0d1f71881b80777074d7840a","user":{"login":"UnsungHero97","id":440299,"avatar_url":"https://avatars.githubusercontent.com/u/440299?v=3","gravatar_id":"","url":"https://api.github.com/users/UnsungHero97","html_url":"https://github.com/UnsungHero97","followers_url":"https://api.github.com/users/UnsungHero97/followers","following_url":"https://api.github.com/users/UnsungHero97/following{/other_user}","gists_url":"https://api.github.com/users/UnsungHero97/gists{/gist_id}","starred_url":"https://api.github.com/users/UnsungHero97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnsungHero97/subscriptions","organizations_url":"https://api.github.com/users/UnsungHero97/orgs","repos_url":"https://api.github.com/users/UnsungHero97/repos","events_url":"https://api.github.com/users/UnsungHero97/events{/privacy}","received_events_url":"https://api.github.com/users/UnsungHero97/received_events","type":"User","site_admin":false},"body":"rename `id` to `objectId`","created_at":"2015-09-07T01:36:11Z","updated_at":"2015-09-07T01:36:11Z","html_url":"https://github.com/kryptnostic/kryptnostic-js/pull/89#discussion_r38829331","pull_request_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89","_links":{"self":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments/38829331"},"html":{"href":"https://github.com/kryptnostic/kryptnostic-js/pull/89#discussion_r38829331"},"pull_request":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89"}}},"pull_request":{"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89","id":44164255,"html_url":"https://github.com/kryptnostic/kryptnostic-js/pull/89","diff_url":"https://github.com/kryptnostic/kryptnostic-js/pull/89.diff","patch_url":"https://github.com/kryptnostic/kryptnostic-js/pull/89.patch","issue_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/89","number":89,"state":"open","locked":false,"title":"Feature/implement mock endpoints","user":{"login":"makosblade","id":336506,"avatar_url":"https://avatars.githubusercontent.com/u/336506?v=3","gravatar_id":"","url":"https://api.github.com/users/makosblade","html_url":"https://github.com/makosblade","followers_url":"https://api.github.com/users/makosblade/followers","following_url":"https://api.github.com/users/makosblade/following{/other_user}","gists_url":"https://api.github.com/users/makosblade/gists{/gist_id}","starred_url":"https://api.github.com/users/makosblade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makosblade/subscriptions","organizations_url":"https://api.github.com/users/makosblade/orgs","repos_url":"https://api.github.com/users/makosblade/repos","events_url":"https://api.github.com/users/makosblade/events{/privacy}","received_events_url":"https://api.github.com/users/makosblade/received_events","type":"User","site_admin":false},"body":"WIP\r\n\r\nNo merges plz","created_at":"2015-09-03T22:16:07Z","updated_at":"2015-09-07T01:36:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a6b7df08fdd0f19e6ea549ea65269e6b8e915a73","assignee":{"login":"UnsungHero97","id":440299,"avatar_url":"https://avatars.githubusercontent.com/u/440299?v=3","gravatar_id":"","url":"https://api.github.com/users/UnsungHero97","html_url":"https://github.com/UnsungHero97","followers_url":"https://api.github.com/users/UnsungHero97/followers","following_url":"https://api.github.com/users/UnsungHero97/following{/other_user}","gists_url":"https://api.github.com/users/UnsungHero97/gists{/gist_id}","starred_url":"https://api.github.com/users/UnsungHero97/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UnsungHero97/subscriptions","organizations_url":"https://api.github.com/users/UnsungHero97/orgs","repos_url":"https://api.github.com/users/UnsungHero97/repos","events_url":"https://api.github.com/users/UnsungHero97/events{/privacy}","received_events_url":"https://api.github.com/users/UnsungHero97/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89/commits","review_comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89/comments","review_comment_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/89/comments","statuses_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/5a9a9f12166e715f0d1f71881b80777074d7840a","head":{"label":"kryptnostic:feature/implement-mock-endpoints","ref":"feature/implement-mock-endpoints","sha":"5a9a9f12166e715f0d1f71881b80777074d7840a","user":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"repo":{"id":33581551,"name":"kryptnostic-js","full_name":"kryptnostic/kryptnostic-js","owner":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kryptnostic/kryptnostic-js","description":"Kryptnostic JavaScript Client","fork":false,"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js","forks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/forks","keys_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/teams","hooks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/hooks","issue_events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/events{/number}","events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/events","assignees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/assignees{/user}","branches_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/branches{/branch}","tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/tags","blobs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/{sha}","languages_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/languages","stargazers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/stargazers","contributors_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contributors","subscribers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscribers","subscription_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscription","commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contents/{+path}","compare_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/merges","archive_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/downloads","issues_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues{/number}","pulls_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls{/number}","milestones_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/milestones{/number}","notifications_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/labels{/name}","releases_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/releases{/id}","created_at":"2015-04-08T03:04:48Z","updated_at":"2015-09-03T17:30:14Z","pushed_at":"2015-09-05T04:20:46Z","git_url":"git://github.com/kryptnostic/kryptnostic-js.git","ssh_url":"git@github.com:kryptnostic/kryptnostic-js.git","clone_url":"https://github.com/kryptnostic/kryptnostic-js.git","svn_url":"https://github.com/kryptnostic/kryptnostic-js","homepage":"","size":3877,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":6,"default_branch":"develop"}},"base":{"label":"kryptnostic:develop","ref":"develop","sha":"c7e84956e6b098559e45f8c638b4acccffdf8022","user":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"repo":{"id":33581551,"name":"kryptnostic-js","full_name":"kryptnostic/kryptnostic-js","owner":{"login":"kryptnostic","id":5438547,"avatar_url":"https://avatars.githubusercontent.com/u/5438547?v=3","gravatar_id":"","url":"https://api.github.com/users/kryptnostic","html_url":"https://github.com/kryptnostic","followers_url":"https://api.github.com/users/kryptnostic/followers","following_url":"https://api.github.com/users/kryptnostic/following{/other_user}","gists_url":"https://api.github.com/users/kryptnostic/gists{/gist_id}","starred_url":"https://api.github.com/users/kryptnostic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kryptnostic/subscriptions","organizations_url":"https://api.github.com/users/kryptnostic/orgs","repos_url":"https://api.github.com/users/kryptnostic/repos","events_url":"https://api.github.com/users/kryptnostic/events{/privacy}","received_events_url":"https://api.github.com/users/kryptnostic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kryptnostic/kryptnostic-js","description":"Kryptnostic JavaScript Client","fork":false,"url":"https://api.github.com/repos/kryptnostic/kryptnostic-js","forks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/forks","keys_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/teams","hooks_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/hooks","issue_events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/events{/number}","events_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/events","assignees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/assignees{/user}","branches_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/branches{/branch}","tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/tags","blobs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/{sha}","languages_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/languages","stargazers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/stargazers","contributors_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contributors","subscribers_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscribers","subscription_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/subscription","commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/contents/{+path}","compare_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/merges","archive_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/downloads","issues_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues{/number}","pulls_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls{/number}","milestones_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/milestones{/number}","notifications_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/labels{/name}","releases_url":"https://api.github.com/repos/kryptnostic/kryptnostic-js/releases{/id}","created_at":"2015-04-08T03:04:48Z","updated_at":"2015-09-03T17:30:14Z","pushed_at":"2015-09-05T04:20:46Z","git_url":"git://github.com/kryptnostic/kryptnostic-js.git","ssh_url":"git@github.com:kryptnostic/kryptnostic-js.git","clone_url":"https://github.com/kryptnostic/kryptnostic-js.git","svn_url":"https://github.com/kryptnostic/kryptnostic-js","homepage":"","size":3877,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89"},"html":{"href":"https://github.com/kryptnostic/kryptnostic-js/pull/89"},"issue":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/89"},"comments":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/kryptnostic/kryptnostic-js/statuses/5a9a9f12166e715f0d1f71881b80777074d7840a"}}}}