{"action":"closed","number":924,"pull_request":{"url":"https://api.github.com/repos/maidsafe/crust/pulls/924","id":166574705,"html_url":"https://github.com/maidsafe/crust/pull/924","diff_url":"https://github.com/maidsafe/crust/pull/924.diff","patch_url":"https://github.com/maidsafe/crust/pull/924.patch","issue_url":"https://api.github.com/repos/maidsafe/crust/issues/924","number":924,"state":"closed","locked":false,"title":"Encryption","user":{"login":"povilasb","id":1213442,"avatar_url":"https://avatars3.githubusercontent.com/u/1213442?v=4","gravatar_id":"","url":"https://api.github.com/users/povilasb","html_url":"https://github.com/povilasb","followers_url":"https://api.github.com/users/povilasb/followers","following_url":"https://api.github.com/users/povilasb/following{/other_user}","gists_url":"https://api.github.com/users/povilasb/gists{/gist_id}","starred_url":"https://api.github.com/users/povilasb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/povilasb/subscriptions","organizations_url":"https://api.github.com/users/povilasb/orgs","repos_url":"https://api.github.com/users/povilasb/repos","events_url":"https://api.github.com/users/povilasb/events{/privacy}","received_events_url":"https://api.github.com/users/povilasb/received_events","type":"User","site_admin":false},"body":"The very first steps into encryption. This PR definitely does not cover everything. It focuses on hole-punched connections, other connections should be intact and do not use encryption.\r\n\r\nThis PR introduces `CryptoContext` helper class to do encryption. Which has an optional encryption feature - you can use `CryptoContext::null()` to construct null encryptor which basically only serializes data without encryption.\r\n\r\nSome future things to consider: bootstrap connection encryption, direct connection encryption and address query request/response encryption.","created_at":"2018-02-01T15:49:27Z","updated_at":"2018-02-07T12:42:01Z","closed_at":"2018-02-07T12:42:01Z","merged_at":"2018-02-07T12:42:01Z","merge_commit_sha":"1b8786b0ef5f5de4745f9b1766edf7af8924b2ad","assignee":{"login":"canndrew","id":5555066,"avatar_url":"https://avatars3.githubusercontent.com/u/5555066?v=4","gravatar_id":"","url":"https://api.github.com/users/canndrew","html_url":"https://github.com/canndrew","followers_url":"https://api.github.com/users/canndrew/followers","following_url":"https://api.github.com/users/canndrew/following{/other_user}","gists_url":"https://api.github.com/users/canndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/canndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canndrew/subscriptions","organizations_url":"https://api.github.com/users/canndrew/orgs","repos_url":"https://api.github.com/users/canndrew/repos","events_url":"https://api.github.com/users/canndrew/events{/privacy}","received_events_url":"https://api.github.com/users/canndrew/received_events","type":"User","site_admin":false},"assignees":[{"login":"canndrew","id":5555066,"avatar_url":"https://avatars3.githubusercontent.com/u/5555066?v=4","gravatar_id":"","url":"https://api.github.com/users/canndrew","html_url":"https://github.com/canndrew","followers_url":"https://api.github.com/users/canndrew/followers","following_url":"https://api.github.com/users/canndrew/following{/other_user}","gists_url":"https://api.github.com/users/canndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/canndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canndrew/subscriptions","organizations_url":"https://api.github.com/users/canndrew/orgs","repos_url":"https://api.github.com/users/canndrew/repos","events_url":"https://api.github.com/users/canndrew/events{/privacy}","received_events_url":"https://api.github.com/users/canndrew/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/maidsafe/crust/pulls/924/commits","review_comments_url":"https://api.github.com/repos/maidsafe/crust/pulls/924/comments","review_comment_url":"https://api.github.com/repos/maidsafe/crust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maidsafe/crust/issues/924/comments","statuses_url":"https://api.github.com/repos/maidsafe/crust/statuses/3f18a2155b5c5c5b9f0ef62936684b7190433c08","head":{"label":"povilasb:encryption","ref":"encryption","sha":"3f18a2155b5c5c5b9f0ef62936684b7190433c08","user":{"login":"povilasb","id":1213442,"avatar_url":"https://avatars3.githubusercontent.com/u/1213442?v=4","gravatar_id":"","url":"https://api.github.com/users/povilasb","html_url":"https://github.com/povilasb","followers_url":"https://api.github.com/users/povilasb/followers","following_url":"https://api.github.com/users/povilasb/following{/other_user}","gists_url":"https://api.github.com/users/povilasb/gists{/gist_id}","starred_url":"https://api.github.com/users/povilasb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/povilasb/subscriptions","organizations_url":"https://api.github.com/users/povilasb/orgs","repos_url":"https://api.github.com/users/povilasb/repos","events_url":"https://api.github.com/users/povilasb/events{/privacy}","received_events_url":"https://api.github.com/users/povilasb/received_events","type":"User","site_admin":false},"repo":{"id":107986152,"name":"crust","full_name":"povilasb/crust","owner":{"login":"povilasb","id":1213442,"avatar_url":"https://avatars3.githubusercontent.com/u/1213442?v=4","gravatar_id":"","url":"https://api.github.com/users/povilasb","html_url":"https://github.com/povilasb","followers_url":"https://api.github.com/users/povilasb/followers","following_url":"https://api.github.com/users/povilasb/following{/other_user}","gists_url":"https://api.github.com/users/povilasb/gists{/gist_id}","starred_url":"https://api.github.com/users/povilasb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/povilasb/subscriptions","organizations_url":"https://api.github.com/users/povilasb/orgs","repos_url":"https://api.github.com/users/povilasb/repos","events_url":"https://api.github.com/users/povilasb/events{/privacy}","received_events_url":"https://api.github.com/users/povilasb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/povilasb/crust","description":"Reliable p2p network connections in Rust with NAT traversal. One of the most needed libraries for any server-less / decentralised projects","fork":true,"url":"https://api.github.com/repos/povilasb/crust","forks_url":"https://api.github.com/repos/povilasb/crust/forks","keys_url":"https://api.github.com/repos/povilasb/crust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/povilasb/crust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/povilasb/crust/teams","hooks_url":"https://api.github.com/repos/povilasb/crust/hooks","issue_events_url":"https://api.github.com/repos/povilasb/crust/issues/events{/number}","events_url":"https://api.github.com/repos/povilasb/crust/events","assignees_url":"https://api.github.com/repos/povilasb/crust/assignees{/user}","branches_url":"https://api.github.com/repos/povilasb/crust/branches{/branch}","tags_url":"https://api.github.com/repos/povilasb/crust/tags","blobs_url":"https://api.github.com/repos/povilasb/crust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/povilasb/crust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/povilasb/crust/git/refs{/sha}","trees_url":"https://api.github.com/repos/povilasb/crust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/povilasb/crust/statuses/{sha}","languages_url":"https://api.github.com/repos/povilasb/crust/languages","stargazers_url":"https://api.github.com/repos/povilasb/crust/stargazers","contributors_url":"https://api.github.com/repos/povilasb/crust/contributors","subscribers_url":"https://api.github.com/repos/povilasb/crust/subscribers","subscription_url":"https://api.github.com/repos/povilasb/crust/subscription","commits_url":"https://api.github.com/repos/povilasb/crust/commits{/sha}","git_commits_url":"https://api.github.com/repos/povilasb/crust/git/commits{/sha}","comments_url":"https://api.github.com/repos/povilasb/crust/comments{/number}","issue_comment_url":"https://api.github.com/repos/povilasb/crust/issues/comments{/number}","contents_url":"https://api.github.com/repos/povilasb/crust/contents/{+path}","compare_url":"https://api.github.com/repos/povilasb/crust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/povilasb/crust/merges","archive_url":"https://api.github.com/repos/povilasb/crust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/povilasb/crust/downloads","issues_url":"https://api.github.com/repos/povilasb/crust/issues{/number}","pulls_url":"https://api.github.com/repos/povilasb/crust/pulls{/number}","milestones_url":"https://api.github.com/repos/povilasb/crust/milestones{/number}","notifications_url":"https://api.github.com/repos/povilasb/crust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/povilasb/crust/labels{/name}","releases_url":"https://api.github.com/repos/povilasb/crust/releases{/id}","deployments_url":"https://api.github.com/repos/povilasb/crust/deployments","created_at":"2017-10-23T13:29:05Z","updated_at":"2017-10-23T13:29:08Z","pushed_at":"2018-02-01T15:44:46Z","git_url":"git://github.com/povilasb/crust.git","ssh_url":"git@github.com:povilasb/crust.git","clone_url":"https://github.com/povilasb/crust.git","svn_url":"https://github.com/povilasb/crust","homepage":null,"size":98818,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"maidsafe:dev","ref":"dev","sha":"262f05b7243bde243c8f94c8ef3987437403fb2a","user":{"login":"maidsafe","id":536423,"avatar_url":"https://avatars1.githubusercontent.com/u/536423?v=4","gravatar_id":"","url":"https://api.github.com/users/maidsafe","html_url":"https://github.com/maidsafe","followers_url":"https://api.github.com/users/maidsafe/followers","following_url":"https://api.github.com/users/maidsafe/following{/other_user}","gists_url":"https://api.github.com/users/maidsafe/gists{/gist_id}","starred_url":"https://api.github.com/users/maidsafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maidsafe/subscriptions","organizations_url":"https://api.github.com/users/maidsafe/orgs","repos_url":"https://api.github.com/users/maidsafe/repos","events_url":"https://api.github.com/users/maidsafe/events{/privacy}","received_events_url":"https://api.github.com/users/maidsafe/received_events","type":"Organization","site_admin":false},"repo":{"id":33324427,"name":"crust","full_name":"maidsafe/crust","owner":{"login":"maidsafe","id":536423,"avatar_url":"https://avatars1.githubusercontent.com/u/536423?v=4","gravatar_id":"","url":"https://api.github.com/users/maidsafe","html_url":"https://github.com/maidsafe","followers_url":"https://api.github.com/users/maidsafe/followers","following_url":"https://api.github.com/users/maidsafe/following{/other_user}","gists_url":"https://api.github.com/users/maidsafe/gists{/gist_id}","starred_url":"https://api.github.com/users/maidsafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maidsafe/subscriptions","organizations_url":"https://api.github.com/users/maidsafe/orgs","repos_url":"https://api.github.com/users/maidsafe/repos","events_url":"https://api.github.com/users/maidsafe/events{/privacy}","received_events_url":"https://api.github.com/users/maidsafe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/maidsafe/crust","description":"Reliable p2p network connections in Rust with NAT traversal. One of the most needed libraries for any server-less / decentralised projects","fork":false,"url":"https://api.github.com/repos/maidsafe/crust","forks_url":"https://api.github.com/repos/maidsafe/crust/forks","keys_url":"https://api.github.com/repos/maidsafe/crust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maidsafe/crust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maidsafe/crust/teams","hooks_url":"https://api.github.com/repos/maidsafe/crust/hooks","issue_events_url":"https://api.github.com/repos/maidsafe/crust/issues/events{/number}","events_url":"https://api.github.com/repos/maidsafe/crust/events","assignees_url":"https://api.github.com/repos/maidsafe/crust/assignees{/user}","branches_url":"https://api.github.com/repos/maidsafe/crust/branches{/branch}","tags_url":"https://api.github.com/repos/maidsafe/crust/tags","blobs_url":"https://api.github.com/repos/maidsafe/crust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maidsafe/crust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maidsafe/crust/git/refs{/sha}","trees_url":"https://api.github.com/repos/maidsafe/crust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maidsafe/crust/statuses/{sha}","languages_url":"https://api.github.com/repos/maidsafe/crust/languages","stargazers_url":"https://api.github.com/repos/maidsafe/crust/stargazers","contributors_url":"https://api.github.com/repos/maidsafe/crust/contributors","subscribers_url":"https://api.github.com/repos/maidsafe/crust/subscribers","subscription_url":"https://api.github.com/repos/maidsafe/crust/subscription","commits_url":"https://api.github.com/repos/maidsafe/crust/commits{/sha}","git_commits_url":"https://api.github.com/repos/maidsafe/crust/git/commits{/sha}","comments_url":"https://api.github.com/repos/maidsafe/crust/comments{/number}","issue_comment_url":"https://api.github.com/repos/maidsafe/crust/issues/comments{/number}","contents_url":"https://api.github.com/repos/maidsafe/crust/contents/{+path}","compare_url":"https://api.github.com/repos/maidsafe/crust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maidsafe/crust/merges","archive_url":"https://api.github.com/repos/maidsafe/crust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maidsafe/crust/downloads","issues_url":"https://api.github.com/repos/maidsafe/crust/issues{/number}","pulls_url":"https://api.github.com/repos/maidsafe/crust/pulls{/number}","milestones_url":"https://api.github.com/repos/maidsafe/crust/milestones{/number}","notifications_url":"https://api.github.com/repos/maidsafe/crust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maidsafe/crust/labels{/name}","releases_url":"https://api.github.com/repos/maidsafe/crust/releases{/id}","deployments_url":"https://api.github.com/repos/maidsafe/crust/deployments","created_at":"2015-04-02T18:16:59Z","updated_at":"2018-02-05T22:05:44Z","pushed_at":"2018-02-07T12:42:01Z","git_url":"git://github.com/maidsafe/crust.git","ssh_url":"git@github.com:maidsafe/crust.git","clone_url":"https://github.com/maidsafe/crust.git","svn_url":"https://github.com/maidsafe/crust","homepage":null,"size":99262,"stargazers_count":564,"watchers_count":564,"language":"Rust","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":80,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":80,"open_issues":8,"watchers":564,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maidsafe/crust/pulls/924"},"html":{"href":"https://github.com/maidsafe/crust/pull/924"},"issue":{"href":"https://api.github.com/repos/maidsafe/crust/issues/924"},"comments":{"href":"https://api.github.com/repos/maidsafe/crust/issues/924/comments"},"review_comments":{"href":"https://api.github.com/repos/maidsafe/crust/pulls/924/comments"},"review_comment":{"href":"https://api.github.com/repos/maidsafe/crust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maidsafe/crust/pulls/924/commits"},"statuses":{"href":"https://api.github.com/repos/maidsafe/crust/statuses/3f18a2155b5c5c5b9f0ef62936684b7190433c08"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"povilasb","id":1213442,"avatar_url":"https://avatars3.githubusercontent.com/u/1213442?v=4","gravatar_id":"","url":"https://api.github.com/users/povilasb","html_url":"https://github.com/povilasb","followers_url":"https://api.github.com/users/povilasb/followers","following_url":"https://api.github.com/users/povilasb/following{/other_user}","gists_url":"https://api.github.com/users/povilasb/gists{/gist_id}","starred_url":"https://api.github.com/users/povilasb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/povilasb/subscriptions","organizations_url":"https://api.github.com/users/povilasb/orgs","repos_url":"https://api.github.com/users/povilasb/repos","events_url":"https://api.github.com/users/povilasb/events{/privacy}","received_events_url":"https://api.github.com/users/povilasb/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":244,"deletions":34,"changed_files":12}}
{"actor":{"display_login":"povilasb"}}