{"action":"created","comment":{"url":"https://api.github.com/repos/uport-project/infrastructure/pulls/comments/193536367","pull_request_review_id":126527368,"id":193536367,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzUzNjM2Nw==","diff_hunk":"@@ -0,0 +1,62 @@\n+# Fuel Token\n+\n+Both `unnu` and `sensui` require a \"fuel token\" for authentication, basicaly as a way to protect them agains abuse.\n+Both services spend ether to complete their opearations so they are subject of abuse.\n+\n+Right now only `nisaba` issues fuel token. In the future we expect any app to be able to issue fuel tokens.\n+\n+## Version 2\n+\n+The fuel token should by a `did-jwt` compatible token. Is should be signed by and compatible uPort identity with a DID.\n+\n+The payload of the token should look like this:\n+\n+```\n+{\n+  iss: 'did:uport:2osnfJ4Wy7LBAm2nPBXire1WfQn75RrV6Ts', //Issuer uPort-DID\n+  iat: 1525927517,\n+  exp: 1557463421,\n+  sub: '0xc7e1a262C2B31CB030936dC293a3e7610868Be23', //Device key\n+  claims: {\n+      allowed:[\n+          \"sensui::rinkeby:0x89205A3A3b2A69De6Dbf7f01ED13B2108B2c43e7?&function=transfer(address *, uint *)\",","path":"FUEL_TOKEN.md","position":null,"original_position":22,"commit_id":"85f367daf84017eae30102d5a321fd096d1fe616","original_commit_id":"46cd1b41cad1f7689bb22bf097bcde220d57b550","user":{"login":"ajunge","id":3538255,"node_id":"MDQ6VXNlcjM1MzgyNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3538255?v=4","gravatar_id":"","url":"https://api.github.com/users/ajunge","html_url":"https://github.com/ajunge","followers_url":"https://api.github.com/users/ajunge/followers","following_url":"https://api.github.com/users/ajunge/following{/other_user}","gists_url":"https://api.github.com/users/ajunge/gists{/gist_id}","starred_url":"https://api.github.com/users/ajunge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajunge/subscriptions","organizations_url":"https://api.github.com/users/ajunge/orgs","repos_url":"https://api.github.com/users/ajunge/repos","events_url":"https://api.github.com/users/ajunge/events{/privacy}","received_events_url":"https://api.github.com/users/ajunge/received_events","type":"User","site_admin":false},"body":"Yea. We need to be very carefull with the allow string verification on sensui (and unnu)","created_at":"2018-06-06T19:47:17Z","updated_at":"2018-06-06T19:47:17Z","html_url":"https://github.com/uport-project/infrastructure/pull/17#discussion_r193536367","pull_request_url":"https://api.github.com/repos/uport-project/infrastructure/pulls/17","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/uport-project/infrastructure/pulls/comments/193536367"},"html":{"href":"https://github.com/uport-project/infrastructure/pull/17#discussion_r193536367"},"pull_request":{"href":"https://api.github.com/repos/uport-project/infrastructure/pulls/17"}},"in_reply_to_id":193448669},"pull_request":{"url":"https://api.github.com/repos/uport-project/infrastructure/pulls/17","id":192806711,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODA2NzEx","html_url":"https://github.com/uport-project/infrastructure/pull/17","diff_url":"https://github.com/uport-project/infrastructure/pull/17.diff","patch_url":"https://github.com/uport-project/infrastructure/pull/17.patch","issue_url":"https://api.github.com/repos/uport-project/infrastructure/issues/17","number":17,"state":"open","locked":false,"title":"closes #3","user":{"login":"ajunge","id":3538255,"node_id":"MDQ6VXNlcjM1MzgyNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3538255?v=4","gravatar_id":"","url":"https://api.github.com/users/ajunge","html_url":"https://github.com/ajunge","followers_url":"https://api.github.com/users/ajunge/followers","following_url":"https://api.github.com/users/ajunge/following{/other_user}","gists_url":"https://api.github.com/users/ajunge/gists{/gist_id}","starred_url":"https://api.github.com/users/ajunge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajunge/subscriptions","organizations_url":"https://api.github.com/users/ajunge/orgs","repos_url":"https://api.github.com/users/ajunge/repos","events_url":"https://api.github.com/users/ajunge/events{/privacy}","received_events_url":"https://api.github.com/users/ajunge/received_events","type":"User","site_admin":false},"body":"Fuel Token spec. \r\nDon't merge until is reviewed by all","created_at":"2018-06-05T19:06:31Z","updated_at":"2018-06-06T19:47:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e4be0a9f64cf284db8ec0de34a4a1804ce047be","assignee":{"login":"ajunge","id":3538255,"node_id":"MDQ6VXNlcjM1MzgyNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3538255?v=4","gravatar_id":"","url":"https://api.github.com/users/ajunge","html_url":"https://github.com/ajunge","followers_url":"https://api.github.com/users/ajunge/followers","following_url":"https://api.github.com/users/ajunge/following{/other_user}","gists_url":"https://api.github.com/users/ajunge/gists{/gist_id}","starred_url":"https://api.github.com/users/ajunge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajunge/subscriptions","organizations_url":"https://api.github.com/users/ajunge/orgs","repos_url":"https://api.github.com/users/ajunge/repos","events_url":"https://api.github.com/users/ajunge/events{/privacy}","received_events_url":"https://api.github.com/users/ajunge/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajunge","id":3538255,"node_id":"MDQ6VXNlcjM1MzgyNTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3538255?v=4","gravatar_id":"","url":"https://api.github.com/users/ajunge","html_url":"https://github.com/ajunge","followers_url":"https://api.github.com/users/ajunge/followers","following_url":"https://api.github.com/users/ajunge/following{/other_user}","gists_url":"https://api.github.com/users/ajunge/gists{/gist_id}","starred_url":"https://api.github.com/users/ajunge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajunge/subscriptions","organizations_url":"https://api.github.com/users/ajunge/orgs","repos_url":"https://api.github.com/users/ajunge/repos","events_url":"https://api.github.com/users/ajunge/events{/privacy}","received_events_url":"https://api.github.com/users/ajunge/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"c-castillo","id":1154738,"node_id":"MDQ6VXNlcjExNTQ3Mzg=","avatar_url":"https://avatars1.githubusercontent.com/u/1154738?v=4","gravatar_id":"","url":"https://api.github.com/users/c-castillo","html_url":"https://github.com/c-castillo","followers_url":"https://api.github.com/users/c-castillo/followers","following_url":"https://api.github.com/users/c-castillo/following{/other_user}","gists_url":"https://api.github.com/users/c-castillo/gists{/gist_id}","starred_url":"https://api.github.com/users/c-castillo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-castillo/subscriptions","organizations_url":"https://api.github.com/users/c-castillo/orgs","repos_url":"https://api.github.com/users/c-castillo/repos","events_url":"https://api.github.com/users/c-castillo/events{/privacy}","received_events_url":"https://api.github.com/users/c-castillo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":951917815,"node_id":"MDU6TGFiZWw5NTE5MTc4MTU=","url":"https://api.github.com/repos/uport-project/infrastructure/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/uport-project/infrastructure/pulls/17/commits","review_comments_url":"https://api.github.com/repos/uport-project/infrastructure/pulls/17/comments","review_comment_url":"https://api.github.com/repos/uport-project/infrastructure/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uport-project/infrastructure/issues/17/comments","statuses_url":"https://api.github.com/repos/uport-project/infrastructure/statuses/85f367daf84017eae30102d5a321fd096d1fe616","head":{"label":"uport-project:feature/#3-fuel-token-v2","ref":"feature/#3-fuel-token-v2","sha":"85f367daf84017eae30102d5a321fd096d1fe616","user":{"login":"uport-project","id":24941981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTQxOTgx","avatar_url":"https://avatars3.githubusercontent.com/u/24941981?v=4","gravatar_id":"","url":"https://api.github.com/users/uport-project","html_url":"https://github.com/uport-project","followers_url":"https://api.github.com/users/uport-project/followers","following_url":"https://api.github.com/users/uport-project/following{/other_user}","gists_url":"https://api.github.com/users/uport-project/gists{/gist_id}","starred_url":"https://api.github.com/users/uport-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uport-project/subscriptions","organizations_url":"https://api.github.com/users/uport-project/orgs","repos_url":"https://api.github.com/users/uport-project/repos","events_url":"https://api.github.com/users/uport-project/events{/privacy}","received_events_url":"https://api.github.com/users/uport-project/received_events","type":"Organization","site_admin":false},"repo":{"id":134011205,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQwMTEyMDU=","name":"infrastructure","full_name":"uport-project/infrastructure","owner":{"login":"uport-project","id":24941981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTQxOTgx","avatar_url":"https://avatars3.githubusercontent.com/u/24941981?v=4","gravatar_id":"","url":"https://api.github.com/users/uport-project","html_url":"https://github.com/uport-project","followers_url":"https://api.github.com/users/uport-project/followers","following_url":"https://api.github.com/users/uport-project/following{/other_user}","gists_url":"https://api.github.com/users/uport-project/gists{/gist_id}","starred_url":"https://api.github.com/users/uport-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uport-project/subscriptions","organizations_url":"https://api.github.com/users/uport-project/orgs","repos_url":"https://api.github.com/users/uport-project/repos","events_url":"https://api.github.com/users/uport-project/events{/privacy}","received_events_url":"https://api.github.com/users/uport-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uport-project/infrastructure","description":"Support services for Self-Sovereign Identity","fork":false,"url":"https://api.github.com/repos/uport-project/infrastructure","forks_url":"https://api.github.com/repos/uport-project/infrastructure/forks","keys_url":"https://api.github.com/repos/uport-project/infrastructure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uport-project/infrastructure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uport-project/infrastructure/teams","hooks_url":"https://api.github.com/repos/uport-project/infrastructure/hooks","issue_events_url":"https://api.github.com/repos/uport-project/infrastructure/issues/events{/number}","events_url":"https://api.github.com/repos/uport-project/infrastructure/events","assignees_url":"https://api.github.com/repos/uport-project/infrastructure/assignees{/user}","branches_url":"https://api.github.com/repos/uport-project/infrastructure/branches{/branch}","tags_url":"https://api.github.com/repos/uport-project/infrastructure/tags","blobs_url":"https://api.github.com/repos/uport-project/infrastructure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uport-project/infrastructure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uport-project/infrastructure/git/refs{/sha}","trees_url":"https://api.github.com/repos/uport-project/infrastructure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uport-project/infrastructure/statuses/{sha}","languages_url":"https://api.github.com/repos/uport-project/infrastructure/languages","stargazers_url":"https://api.github.com/repos/uport-project/infrastructure/stargazers","contributors_url":"https://api.github.com/repos/uport-project/infrastructure/contributors","subscribers_url":"https://api.github.com/repos/uport-project/infrastructure/subscribers","subscription_url":"https://api.github.com/repos/uport-project/infrastructure/subscription","commits_url":"https://api.github.com/repos/uport-project/infrastructure/commits{/sha}","git_commits_url":"https://api.github.com/repos/uport-project/infrastructure/git/commits{/sha}","comments_url":"https://api.github.com/repos/uport-project/infrastructure/comments{/number}","issue_comment_url":"https://api.github.com/repos/uport-project/infrastructure/issues/comments{/number}","contents_url":"https://api.github.com/repos/uport-project/infrastructure/contents/{+path}","compare_url":"https://api.github.com/repos/uport-project/infrastructure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uport-project/infrastructure/merges","archive_url":"https://api.github.com/repos/uport-project/infrastructure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uport-project/infrastructure/downloads","issues_url":"https://api.github.com/repos/uport-project/infrastructure/issues{/number}","pulls_url":"https://api.github.com/repos/uport-project/infrastructure/pulls{/number}","milestones_url":"https://api.github.com/repos/uport-project/infrastructure/milestones{/number}","notifications_url":"https://api.github.com/repos/uport-project/infrastructure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uport-project/infrastructure/labels{/name}","releases_url":"https://api.github.com/repos/uport-project/infrastructure/releases{/id}","deployments_url":"https://api.github.com/repos/uport-project/infrastructure/deployments","created_at":"2018-05-18T22:55:17Z","updated_at":"2018-06-05T18:20:16Z","pushed_at":"2018-06-06T19:45:15Z","git_url":"git://github.com/uport-project/infrastructure.git","ssh_url":"git@github.com:uport-project/infrastructure.git","clone_url":"https://github.com/uport-project/infrastructure.git","svn_url":"https://github.com/uport-project/infrastructure","homepage":null,"size":8,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"uport-project:master","ref":"master","sha":"9aa5fcfae88ef231b12645cb23724578edd5d10c","user":{"login":"uport-project","id":24941981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTQxOTgx","avatar_url":"https://avatars3.githubusercontent.com/u/24941981?v=4","gravatar_id":"","url":"https://api.github.com/users/uport-project","html_url":"https://github.com/uport-project","followers_url":"https://api.github.com/users/uport-project/followers","following_url":"https://api.github.com/users/uport-project/following{/other_user}","gists_url":"https://api.github.com/users/uport-project/gists{/gist_id}","starred_url":"https://api.github.com/users/uport-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uport-project/subscriptions","organizations_url":"https://api.github.com/users/uport-project/orgs","repos_url":"https://api.github.com/users/uport-project/repos","events_url":"https://api.github.com/users/uport-project/events{/privacy}","received_events_url":"https://api.github.com/users/uport-project/received_events","type":"Organization","site_admin":false},"repo":{"id":134011205,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQwMTEyMDU=","name":"infrastructure","full_name":"uport-project/infrastructure","owner":{"login":"uport-project","id":24941981,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0OTQxOTgx","avatar_url":"https://avatars3.githubusercontent.com/u/24941981?v=4","gravatar_id":"","url":"https://api.github.com/users/uport-project","html_url":"https://github.com/uport-project","followers_url":"https://api.github.com/users/uport-project/followers","following_url":"https://api.github.com/users/uport-project/following{/other_user}","gists_url":"https://api.github.com/users/uport-project/gists{/gist_id}","starred_url":"https://api.github.com/users/uport-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uport-project/subscriptions","organizations_url":"https://api.github.com/users/uport-project/orgs","repos_url":"https://api.github.com/users/uport-project/repos","events_url":"https://api.github.com/users/uport-project/events{/privacy}","received_events_url":"https://api.github.com/users/uport-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uport-project/infrastructure","description":"Support services for Self-Sovereign Identity","fork":false,"url":"https://api.github.com/repos/uport-project/infrastructure","forks_url":"https://api.github.com/repos/uport-project/infrastructure/forks","keys_url":"https://api.github.com/repos/uport-project/infrastructure/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uport-project/infrastructure/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uport-project/infrastructure/teams","hooks_url":"https://api.github.com/repos/uport-project/infrastructure/hooks","issue_events_url":"https://api.github.com/repos/uport-project/infrastructure/issues/events{/number}","events_url":"https://api.github.com/repos/uport-project/infrastructure/events","assignees_url":"https://api.github.com/repos/uport-project/infrastructure/assignees{/user}","branches_url":"https://api.github.com/repos/uport-project/infrastructure/branches{/branch}","tags_url":"https://api.github.com/repos/uport-project/infrastructure/tags","blobs_url":"https://api.github.com/repos/uport-project/infrastructure/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uport-project/infrastructure/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uport-project/infrastructure/git/refs{/sha}","trees_url":"https://api.github.com/repos/uport-project/infrastructure/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uport-project/infrastructure/statuses/{sha}","languages_url":"https://api.github.com/repos/uport-project/infrastructure/languages","stargazers_url":"https://api.github.com/repos/uport-project/infrastructure/stargazers","contributors_url":"https://api.github.com/repos/uport-project/infrastructure/contributors","subscribers_url":"https://api.github.com/repos/uport-project/infrastructure/subscribers","subscription_url":"https://api.github.com/repos/uport-project/infrastructure/subscription","commits_url":"https://api.github.com/repos/uport-project/infrastructure/commits{/sha}","git_commits_url":"https://api.github.com/repos/uport-project/infrastructure/git/commits{/sha}","comments_url":"https://api.github.com/repos/uport-project/infrastructure/comments{/number}","issue_comment_url":"https://api.github.com/repos/uport-project/infrastructure/issues/comments{/number}","contents_url":"https://api.github.com/repos/uport-project/infrastructure/contents/{+path}","compare_url":"https://api.github.com/repos/uport-project/infrastructure/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uport-project/infrastructure/merges","archive_url":"https://api.github.com/repos/uport-project/infrastructure/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uport-project/infrastructure/downloads","issues_url":"https://api.github.com/repos/uport-project/infrastructure/issues{/number}","pulls_url":"https://api.github.com/repos/uport-project/infrastructure/pulls{/number}","milestones_url":"https://api.github.com/repos/uport-project/infrastructure/milestones{/number}","notifications_url":"https://api.github.com/repos/uport-project/infrastructure/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uport-project/infrastructure/labels{/name}","releases_url":"https://api.github.com/repos/uport-project/infrastructure/releases{/id}","deployments_url":"https://api.github.com/repos/uport-project/infrastructure/deployments","created_at":"2018-05-18T22:55:17Z","updated_at":"2018-06-05T18:20:16Z","pushed_at":"2018-06-06T19:45:15Z","git_url":"git://github.com/uport-project/infrastructure.git","ssh_url":"git@github.com:uport-project/infrastructure.git","clone_url":"https://github.com/uport-project/infrastructure.git","svn_url":"https://github.com/uport-project/infrastructure","homepage":null,"size":8,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/uport-project/infrastructure/pulls/17"},"html":{"href":"https://github.com/uport-project/infrastructure/pull/17"},"issue":{"href":"https://api.github.com/repos/uport-project/infrastructure/issues/17"},"comments":{"href":"https://api.github.com/repos/uport-project/infrastructure/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/uport-project/infrastructure/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/uport-project/infrastructure/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uport-project/infrastructure/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/uport-project/infrastructure/statuses/85f367daf84017eae30102d5a321fd096d1fe616"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ajunge"}}