{"action":"opened","number":622,"pull_request":{"url":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/622","id":169362500,"html_url":"https://github.com/nanocurrency/raiblocks/pull/622","diff_url":"https://github.com/nanocurrency/raiblocks/pull/622.diff","patch_url":"https://github.com/nanocurrency/raiblocks/pull/622.patch","issue_url":"https://api.github.com/repos/nanocurrency/raiblocks/issues/622","number":622,"state":"open","locked":false,"title":"Encrypted seed export and import commands","user":{"login":"cryptocode","id":34946442,"avatar_url":"https://avatars2.githubusercontent.com/u/34946442?v=4","gravatar_id":"","url":"https://api.github.com/users/cryptocode","html_url":"https://github.com/cryptocode","followers_url":"https://api.github.com/users/cryptocode/followers","following_url":"https://api.github.com/users/cryptocode/following{/other_user}","gists_url":"https://api.github.com/users/cryptocode/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptocode/subscriptions","organizations_url":"https://api.github.com/users/cryptocode/orgs","repos_url":"https://api.github.com/users/cryptocode/repos","events_url":"https://api.github.com/users/cryptocode/events{/privacy}","received_events_url":"https://api.github.com/users/cryptocode/received_events","type":"User","site_admin":false},"body":"This PR proposes two new commands, `seed_safe_export` and `seed_safe_import`, for exporting and importing encrypted seeds in a wallet agnostic way. \r\n\r\nThis can be used for seed backup and safely importing seeds to other wallets supporting the format.\r\n\r\nSample output:\r\n\r\n```\r\n{\r\n    \"type_key\": \"ARGON2-IV256\",\r\n    \"type_cipher\": \"AES256-CTR-IV128\",\r\n    \"type_checksum\": \"SHA256\",\r\n    \"key_iv\": \"E82FF3EF7E49FB42670A72C5C56C10DF9C54CB5F071E64ADF2C086905B3A4B8C\",\r\n    \"seed_iv\": \"57931279153FBA7F0205D81BDC9979B1\",\r\n    \"seed_encrypted\": \"BF2B32110D95842B2E7BE0DFE81EBDF184C1A218B33877A92A2298B1067DCC35\",\r\n    \"checksum\": \"37662A432EAB048F7ADF26571F50EEA2B9890F4DF4E4BE0668550D284F222D21\"\r\n}\r\n```\r\n\r\nThe will allow the following flow: Export seed from any wallet and create a QR code. Use \"Scan encrypted seed\" and enter passphrase to import. Other wallets can just import the json (like the import command does)\r\n\r\nAs a future improvement to the node CLI, I suggest introducing support for non-echoing terminal input to avoid passing passwords and other keys/seeds in plaintext to commands.\r\n\r\nThe `type_` tuples are what they are because that's what the node already use, but this can be changed and extended since the format includes all the info needed to decrypt once handed the passphrase.","created_at":"2018-02-15T12:49:13Z","updated_at":"2018-02-15T12:49:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/622/commits","review_comments_url":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/622/comments","review_comment_url":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nanocurrency/raiblocks/issues/622/comments","statuses_url":"https://api.github.com/repos/nanocurrency/raiblocks/statuses/45fcfc58a6335352ac6414352ade13d0c1bc6e50","head":{"label":"cryptocode:encrypted-seed-backup","ref":"encrypted-seed-backup","sha":"45fcfc58a6335352ac6414352ade13d0c1bc6e50","user":{"login":"cryptocode","id":34946442,"avatar_url":"https://avatars2.githubusercontent.com/u/34946442?v=4","gravatar_id":"","url":"https://api.github.com/users/cryptocode","html_url":"https://github.com/cryptocode","followers_url":"https://api.github.com/users/cryptocode/followers","following_url":"https://api.github.com/users/cryptocode/following{/other_user}","gists_url":"https://api.github.com/users/cryptocode/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptocode/subscriptions","organizations_url":"https://api.github.com/users/cryptocode/orgs","repos_url":"https://api.github.com/users/cryptocode/repos","events_url":"https://api.github.com/users/cryptocode/events{/privacy}","received_events_url":"https://api.github.com/users/cryptocode/received_events","type":"User","site_admin":false},"repo":{"id":116246454,"name":"raiblocks","full_name":"cryptocode/raiblocks","owner":{"login":"cryptocode","id":34946442,"avatar_url":"https://avatars2.githubusercontent.com/u/34946442?v=4","gravatar_id":"","url":"https://api.github.com/users/cryptocode","html_url":"https://github.com/cryptocode","followers_url":"https://api.github.com/users/cryptocode/followers","following_url":"https://api.github.com/users/cryptocode/following{/other_user}","gists_url":"https://api.github.com/users/cryptocode/gists{/gist_id}","starred_url":"https://api.github.com/users/cryptocode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cryptocode/subscriptions","organizations_url":"https://api.github.com/users/cryptocode/orgs","repos_url":"https://api.github.com/users/cryptocode/repos","events_url":"https://api.github.com/users/cryptocode/events{/privacy}","received_events_url":"https://api.github.com/users/cryptocode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cryptocode/raiblocks","description":"RaiBlocks is a cryptocurrency","fork":true,"url":"https://api.github.com/repos/cryptocode/raiblocks","forks_url":"https://api.github.com/repos/cryptocode/raiblocks/forks","keys_url":"https://api.github.com/repos/cryptocode/raiblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cryptocode/raiblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cryptocode/raiblocks/teams","hooks_url":"https://api.github.com/repos/cryptocode/raiblocks/hooks","issue_events_url":"https://api.github.com/repos/cryptocode/raiblocks/issues/events{/number}","events_url":"https://api.github.com/repos/cryptocode/raiblocks/events","assignees_url":"https://api.github.com/repos/cryptocode/raiblocks/assignees{/user}","branches_url":"https://api.github.com/repos/cryptocode/raiblocks/branches{/branch}","tags_url":"https://api.github.com/repos/cryptocode/raiblocks/tags","blobs_url":"https://api.github.com/repos/cryptocode/raiblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cryptocode/raiblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cryptocode/raiblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/cryptocode/raiblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cryptocode/raiblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/cryptocode/raiblocks/languages","stargazers_url":"https://api.github.com/repos/cryptocode/raiblocks/stargazers","contributors_url":"https://api.github.com/repos/cryptocode/raiblocks/contributors","subscribers_url":"https://api.github.com/repos/cryptocode/raiblocks/subscribers","subscription_url":"https://api.github.com/repos/cryptocode/raiblocks/subscription","commits_url":"https://api.github.com/repos/cryptocode/raiblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/cryptocode/raiblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/cryptocode/raiblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/cryptocode/raiblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/cryptocode/raiblocks/contents/{+path}","compare_url":"https://api.github.com/repos/cryptocode/raiblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cryptocode/raiblocks/merges","archive_url":"https://api.github.com/repos/cryptocode/raiblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cryptocode/raiblocks/downloads","issues_url":"https://api.github.com/repos/cryptocode/raiblocks/issues{/number}","pulls_url":"https://api.github.com/repos/cryptocode/raiblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/cryptocode/raiblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/cryptocode/raiblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cryptocode/raiblocks/labels{/name}","releases_url":"https://api.github.com/repos/cryptocode/raiblocks/releases{/id}","deployments_url":"https://api.github.com/repos/cryptocode/raiblocks/deployments","created_at":"2018-01-04T10:23:30Z","updated_at":"2018-01-07T20:46:36Z","pushed_at":"2018-02-15T12:33:04Z","git_url":"git://github.com/cryptocode/raiblocks.git","ssh_url":"git@github.com:cryptocode/raiblocks.git","clone_url":"https://github.com/cryptocode/raiblocks.git","svn_url":"https://github.com/cryptocode/raiblocks","homepage":"http://raiblocks.net","size":12255,"stargazers_count":0,"watchers_count":0,"language":"C++","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":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nanocurrency:master","ref":"master","sha":"f58dfec000a00a2d95b64068c2d23b1c1a1d41b2","user":{"login":"nanocurrency","id":34106716,"avatar_url":"https://avatars0.githubusercontent.com/u/34106716?v=4","gravatar_id":"","url":"https://api.github.com/users/nanocurrency","html_url":"https://github.com/nanocurrency","followers_url":"https://api.github.com/users/nanocurrency/followers","following_url":"https://api.github.com/users/nanocurrency/following{/other_user}","gists_url":"https://api.github.com/users/nanocurrency/gists{/gist_id}","starred_url":"https://api.github.com/users/nanocurrency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanocurrency/subscriptions","organizations_url":"https://api.github.com/users/nanocurrency/orgs","repos_url":"https://api.github.com/users/nanocurrency/repos","events_url":"https://api.github.com/users/nanocurrency/events{/privacy}","received_events_url":"https://api.github.com/users/nanocurrency/received_events","type":"Organization","site_admin":false},"repo":{"id":19347340,"name":"raiblocks","full_name":"nanocurrency/raiblocks","owner":{"login":"nanocurrency","id":34106716,"avatar_url":"https://avatars0.githubusercontent.com/u/34106716?v=4","gravatar_id":"","url":"https://api.github.com/users/nanocurrency","html_url":"https://github.com/nanocurrency","followers_url":"https://api.github.com/users/nanocurrency/followers","following_url":"https://api.github.com/users/nanocurrency/following{/other_user}","gists_url":"https://api.github.com/users/nanocurrency/gists{/gist_id}","starred_url":"https://api.github.com/users/nanocurrency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanocurrency/subscriptions","organizations_url":"https://api.github.com/users/nanocurrency/orgs","repos_url":"https://api.github.com/users/nanocurrency/repos","events_url":"https://api.github.com/users/nanocurrency/events{/privacy}","received_events_url":"https://api.github.com/users/nanocurrency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nanocurrency/raiblocks","description":"RaiBlocks is a cryptocurrency","fork":false,"url":"https://api.github.com/repos/nanocurrency/raiblocks","forks_url":"https://api.github.com/repos/nanocurrency/raiblocks/forks","keys_url":"https://api.github.com/repos/nanocurrency/raiblocks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nanocurrency/raiblocks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nanocurrency/raiblocks/teams","hooks_url":"https://api.github.com/repos/nanocurrency/raiblocks/hooks","issue_events_url":"https://api.github.com/repos/nanocurrency/raiblocks/issues/events{/number}","events_url":"https://api.github.com/repos/nanocurrency/raiblocks/events","assignees_url":"https://api.github.com/repos/nanocurrency/raiblocks/assignees{/user}","branches_url":"https://api.github.com/repos/nanocurrency/raiblocks/branches{/branch}","tags_url":"https://api.github.com/repos/nanocurrency/raiblocks/tags","blobs_url":"https://api.github.com/repos/nanocurrency/raiblocks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nanocurrency/raiblocks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nanocurrency/raiblocks/git/refs{/sha}","trees_url":"https://api.github.com/repos/nanocurrency/raiblocks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nanocurrency/raiblocks/statuses/{sha}","languages_url":"https://api.github.com/repos/nanocurrency/raiblocks/languages","stargazers_url":"https://api.github.com/repos/nanocurrency/raiblocks/stargazers","contributors_url":"https://api.github.com/repos/nanocurrency/raiblocks/contributors","subscribers_url":"https://api.github.com/repos/nanocurrency/raiblocks/subscribers","subscription_url":"https://api.github.com/repos/nanocurrency/raiblocks/subscription","commits_url":"https://api.github.com/repos/nanocurrency/raiblocks/commits{/sha}","git_commits_url":"https://api.github.com/repos/nanocurrency/raiblocks/git/commits{/sha}","comments_url":"https://api.github.com/repos/nanocurrency/raiblocks/comments{/number}","issue_comment_url":"https://api.github.com/repos/nanocurrency/raiblocks/issues/comments{/number}","contents_url":"https://api.github.com/repos/nanocurrency/raiblocks/contents/{+path}","compare_url":"https://api.github.com/repos/nanocurrency/raiblocks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nanocurrency/raiblocks/merges","archive_url":"https://api.github.com/repos/nanocurrency/raiblocks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nanocurrency/raiblocks/downloads","issues_url":"https://api.github.com/repos/nanocurrency/raiblocks/issues{/number}","pulls_url":"https://api.github.com/repos/nanocurrency/raiblocks/pulls{/number}","milestones_url":"https://api.github.com/repos/nanocurrency/raiblocks/milestones{/number}","notifications_url":"https://api.github.com/repos/nanocurrency/raiblocks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nanocurrency/raiblocks/labels{/name}","releases_url":"https://api.github.com/repos/nanocurrency/raiblocks/releases{/id}","deployments_url":"https://api.github.com/repos/nanocurrency/raiblocks/deployments","created_at":"2014-05-01T14:49:25Z","updated_at":"2018-02-15T07:39:36Z","pushed_at":"2018-02-15T11:34:23Z","git_url":"git://github.com/nanocurrency/raiblocks.git","ssh_url":"git@github.com:nanocurrency/raiblocks.git","clone_url":"https://github.com/nanocurrency/raiblocks.git","svn_url":"https://github.com/nanocurrency/raiblocks","homepage":"http://raiblocks.net","size":12304,"stargazers_count":1690,"watchers_count":1690,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":303,"mirror_url":null,"archived":false,"open_issues_count":266,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":303,"open_issues":266,"watchers":1690,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/622"},"html":{"href":"https://github.com/nanocurrency/raiblocks/pull/622"},"issue":{"href":"https://api.github.com/repos/nanocurrency/raiblocks/issues/622"},"comments":{"href":"https://api.github.com/repos/nanocurrency/raiblocks/issues/622/comments"},"review_comments":{"href":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/622/comments"},"review_comment":{"href":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nanocurrency/raiblocks/pulls/622/commits"},"statuses":{"href":"https://api.github.com/repos/nanocurrency/raiblocks/statuses/45fcfc58a6335352ac6414352ade13d0c1bc6e50"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":212,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"cryptocode"}}