{"action":"created","comment":{"url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/comments/210563685","pull_request_review_id":146803925,"id":210563685,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDU2MzY4NQ==","diff_hunk":"@@ -128,9 +129,29 @@ class ViewController @Inject()(implicit ec: ExecutionContext, ts: TransactionSer\n     )\n   }\n \n+  def setWalletWithMnemonic(): Action[AnyContent] = Action { implicit request: Request[AnyContent] =>\n+    ViewController.settingsMnemonicForm.bindFromRequest.fold(\n+      _ => Redirect(routes.ViewController.message(\"Mnemonic cod can not be empty\")),\n+      data => {\n+        val w: Wallet = ws.createNewWallet(Mnemonic.seedFromMnemonic(data.mnemonicCode).some)\n+        Redirect(routes.ViewController.message(\"Wallet has been successfully set\"))\n+          .withCookies(Cookie(ViewController.pubKeyCookieName, Algos.encode(w.pubKey), Some(86400 * 5)))\n+      }\n+    )\n+  }\n+\n+  def createAndSetWalletWithOutSeed(): Action[AnyContent] = Action { implicit request: Request[AnyContent] =>\n+    val (w, phrase) = ws.createNewWalletWithOutSeed","path":"app/controllers/ViewController.scala","position":null,"original_position":39,"commit_id":"f23f4bda4356098d52c4415ecccd27d8deb725f5","original_commit_id":"0aa99f3d025188406c4847bb402429188db02875","user":{"login":"jhnsmth","id":15067848,"node_id":"MDQ6VXNlcjE1MDY3ODQ4","avatar_url":"https://avatars2.githubusercontent.com/u/15067848?v=4","gravatar_id":"","url":"https://api.github.com/users/jhnsmth","html_url":"https://github.com/jhnsmth","followers_url":"https://api.github.com/users/jhnsmth/followers","following_url":"https://api.github.com/users/jhnsmth/following{/other_user}","gists_url":"https://api.github.com/users/jhnsmth/gists{/gist_id}","starred_url":"https://api.github.com/users/jhnsmth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhnsmth/subscriptions","organizations_url":"https://api.github.com/users/jhnsmth/orgs","repos_url":"https://api.github.com/users/jhnsmth/repos","events_url":"https://api.github.com/users/jhnsmth/events{/privacy}","received_events_url":"https://api.github.com/users/jhnsmth/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-08-16T11:39:36Z","updated_at":"2018-08-16T11:39:36Z","html_url":"https://github.com/EncryFoundation/EncryWallet/pull/24#discussion_r210563685","pull_request_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/comments/210563685"},"html":{"href":"https://github.com/EncryFoundation/EncryWallet/pull/24#discussion_r210563685"},"pull_request":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24"}},"in_reply_to_id":210561421},"pull_request":{"url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24","id":208827526,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4ODI3NTI2","html_url":"https://github.com/EncryFoundation/EncryWallet/pull/24","diff_url":"https://github.com/EncryFoundation/EncryWallet/pull/24.diff","patch_url":"https://github.com/EncryFoundation/EncryWallet/pull/24.patch","issue_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/24","number":24,"state":"open","locked":false,"title":"EC-375 Use mnemonic seed instead of base58-string for wallet restoring ","user":{"login":"jhnsmth","id":15067848,"node_id":"MDQ6VXNlcjE1MDY3ODQ4","avatar_url":"https://avatars2.githubusercontent.com/u/15067848?v=4","gravatar_id":"","url":"https://api.github.com/users/jhnsmth","html_url":"https://github.com/jhnsmth","followers_url":"https://api.github.com/users/jhnsmth/followers","following_url":"https://api.github.com/users/jhnsmth/following{/other_user}","gists_url":"https://api.github.com/users/jhnsmth/gists{/gist_id}","starred_url":"https://api.github.com/users/jhnsmth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhnsmth/subscriptions","organizations_url":"https://api.github.com/users/jhnsmth/orgs","repos_url":"https://api.github.com/users/jhnsmth/repos","events_url":"https://api.github.com/users/jhnsmth/events{/privacy}","received_events_url":"https://api.github.com/users/jhnsmth/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-16T11:27:16Z","updated_at":"2018-08-16T11:39:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2b88fcf81c93a9eb59b813e948df04eb664aca1","assignee":null,"assignees":[],"requested_reviewers":[{"login":"GusevTimofey","id":32402442,"node_id":"MDQ6VXNlcjMyNDAyNDQy","avatar_url":"https://avatars3.githubusercontent.com/u/32402442?v=4","gravatar_id":"","url":"https://api.github.com/users/GusevTimofey","html_url":"https://github.com/GusevTimofey","followers_url":"https://api.github.com/users/GusevTimofey/followers","following_url":"https://api.github.com/users/GusevTimofey/following{/other_user}","gists_url":"https://api.github.com/users/GusevTimofey/gists{/gist_id}","starred_url":"https://api.github.com/users/GusevTimofey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GusevTimofey/subscriptions","organizations_url":"https://api.github.com/users/GusevTimofey/orgs","repos_url":"https://api.github.com/users/GusevTimofey/repos","events_url":"https://api.github.com/users/GusevTimofey/events{/privacy}","received_events_url":"https://api.github.com/users/GusevTimofey/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":992688741,"node_id":"MDU6TGFiZWw5OTI2ODg3NDE=","url":"https://api.github.com/repos/EncryFoundation/EncryWallet/labels/review%20required","name":"review required","color":"7ef780","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24/commits","review_comments_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24/comments","review_comment_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/24/comments","statuses_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/statuses/f23f4bda4356098d52c4415ecccd27d8deb725f5","head":{"label":"EncryFoundation:EC-375","ref":"EC-375","sha":"f23f4bda4356098d52c4415ecccd27d8deb725f5","user":{"login":"EncryFoundation","id":38134287,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTM0Mjg3","avatar_url":"https://avatars0.githubusercontent.com/u/38134287?v=4","gravatar_id":"","url":"https://api.github.com/users/EncryFoundation","html_url":"https://github.com/EncryFoundation","followers_url":"https://api.github.com/users/EncryFoundation/followers","following_url":"https://api.github.com/users/EncryFoundation/following{/other_user}","gists_url":"https://api.github.com/users/EncryFoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/EncryFoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EncryFoundation/subscriptions","organizations_url":"https://api.github.com/users/EncryFoundation/orgs","repos_url":"https://api.github.com/users/EncryFoundation/repos","events_url":"https://api.github.com/users/EncryFoundation/events{/privacy}","received_events_url":"https://api.github.com/users/EncryFoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":137731017,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MzEwMTc=","name":"EncryWallet","full_name":"EncryFoundation/EncryWallet","owner":{"login":"EncryFoundation","id":38134287,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTM0Mjg3","avatar_url":"https://avatars0.githubusercontent.com/u/38134287?v=4","gravatar_id":"","url":"https://api.github.com/users/EncryFoundation","html_url":"https://github.com/EncryFoundation","followers_url":"https://api.github.com/users/EncryFoundation/followers","following_url":"https://api.github.com/users/EncryFoundation/following{/other_user}","gists_url":"https://api.github.com/users/EncryFoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/EncryFoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EncryFoundation/subscriptions","organizations_url":"https://api.github.com/users/EncryFoundation/orgs","repos_url":"https://api.github.com/users/EncryFoundation/repos","events_url":"https://api.github.com/users/EncryFoundation/events{/privacy}","received_events_url":"https://api.github.com/users/EncryFoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EncryFoundation/EncryWallet","description":"Lightweight client for Encry blockchain","fork":false,"url":"https://api.github.com/repos/EncryFoundation/EncryWallet","forks_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/forks","keys_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/teams","hooks_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/hooks","issue_events_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/events{/number}","events_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/events","assignees_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/assignees{/user}","branches_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/branches{/branch}","tags_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/tags","blobs_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/statuses/{sha}","languages_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/languages","stargazers_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/stargazers","contributors_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/contributors","subscribers_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/subscribers","subscription_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/subscription","commits_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/contents/{+path}","compare_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/merges","archive_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/downloads","issues_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues{/number}","pulls_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls{/number}","milestones_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/milestones{/number}","notifications_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/labels{/name}","releases_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/releases{/id}","deployments_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/deployments","created_at":"2018-06-18T09:07:06Z","updated_at":"2018-08-16T10:59:43Z","pushed_at":"2018-08-16T11:39:13Z","git_url":"git://github.com/EncryFoundation/EncryWallet.git","ssh_url":"git@github.com:EncryFoundation/EncryWallet.git","clone_url":"https://github.com/EncryFoundation/EncryWallet.git","svn_url":"https://github.com/EncryFoundation/EncryWallet","homepage":"","size":314,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"EncryFoundation:master","ref":"master","sha":"8dcf160aafdfdf48ead0e6f576f731ad75ab2372","user":{"login":"EncryFoundation","id":38134287,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTM0Mjg3","avatar_url":"https://avatars0.githubusercontent.com/u/38134287?v=4","gravatar_id":"","url":"https://api.github.com/users/EncryFoundation","html_url":"https://github.com/EncryFoundation","followers_url":"https://api.github.com/users/EncryFoundation/followers","following_url":"https://api.github.com/users/EncryFoundation/following{/other_user}","gists_url":"https://api.github.com/users/EncryFoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/EncryFoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EncryFoundation/subscriptions","organizations_url":"https://api.github.com/users/EncryFoundation/orgs","repos_url":"https://api.github.com/users/EncryFoundation/repos","events_url":"https://api.github.com/users/EncryFoundation/events{/privacy}","received_events_url":"https://api.github.com/users/EncryFoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":137731017,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3MzEwMTc=","name":"EncryWallet","full_name":"EncryFoundation/EncryWallet","owner":{"login":"EncryFoundation","id":38134287,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM4MTM0Mjg3","avatar_url":"https://avatars0.githubusercontent.com/u/38134287?v=4","gravatar_id":"","url":"https://api.github.com/users/EncryFoundation","html_url":"https://github.com/EncryFoundation","followers_url":"https://api.github.com/users/EncryFoundation/followers","following_url":"https://api.github.com/users/EncryFoundation/following{/other_user}","gists_url":"https://api.github.com/users/EncryFoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/EncryFoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EncryFoundation/subscriptions","organizations_url":"https://api.github.com/users/EncryFoundation/orgs","repos_url":"https://api.github.com/users/EncryFoundation/repos","events_url":"https://api.github.com/users/EncryFoundation/events{/privacy}","received_events_url":"https://api.github.com/users/EncryFoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EncryFoundation/EncryWallet","description":"Lightweight client for Encry blockchain","fork":false,"url":"https://api.github.com/repos/EncryFoundation/EncryWallet","forks_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/forks","keys_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/teams","hooks_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/hooks","issue_events_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/events{/number}","events_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/events","assignees_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/assignees{/user}","branches_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/branches{/branch}","tags_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/tags","blobs_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/statuses/{sha}","languages_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/languages","stargazers_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/stargazers","contributors_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/contributors","subscribers_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/subscribers","subscription_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/subscription","commits_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/contents/{+path}","compare_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/merges","archive_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/downloads","issues_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues{/number}","pulls_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls{/number}","milestones_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/milestones{/number}","notifications_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/labels{/name}","releases_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/releases{/id}","deployments_url":"https://api.github.com/repos/EncryFoundation/EncryWallet/deployments","created_at":"2018-06-18T09:07:06Z","updated_at":"2018-08-16T10:59:43Z","pushed_at":"2018-08-16T11:39:13Z","git_url":"git://github.com/EncryFoundation/EncryWallet.git","ssh_url":"git@github.com:EncryFoundation/EncryWallet.git","clone_url":"https://github.com/EncryFoundation/EncryWallet.git","svn_url":"https://github.com/EncryFoundation/EncryWallet","homepage":"","size":314,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24"},"html":{"href":"https://github.com/EncryFoundation/EncryWallet/pull/24"},"issue":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/24"},"comments":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/EncryFoundation/EncryWallet/statuses/f23f4bda4356098d52c4415ecccd27d8deb725f5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"jhnsmth"}}