{"action":"created","comment":{"url":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/comments/180730213","pull_request_review_id":111200146,"id":180730213,"diff_hunk":"@@ -2,17 +2,43 @@\n \n from electrum import util, keystore\n \n+import argparse\n import sys\n \n-lines = [x.strip() for x in sys.stdin.readlines()]\n \n-words = \"\"\n-passw = \"\"\n-if len(lines) == 2:\n-    passw = lines[1]\n-if not (len(lines) in [1, 2]):\n-    print(\"wrong input\")\n-    sys.exit(1)\n \n-words = lines[0]\n-print(util.bh2u(keystore.bip39_to_seed(words, passw)))\n+def main():\n+    arg_parser = argparse.ArgumentParser()\n+    arg_parser.add_argument('--check', action='store_true', default=False)\n+    args = arg_parser.parse_args()\n+\n+    lines = [x.strip() for x in sys.stdin.readlines()]\n+\n+    words = \"\"\n+    passw = \"\"\n+    if len(lines) == 2:\n+        passw = lines[1]\n+    if not (len(lines) in [1, 2]):\n+        print(\"wrong input\")","path":"bip39.py","position":31,"original_position":31,"commit_id":"6f2ebe24fc82cff935723b952b224ba158ebecef","original_commit_id":"6f2ebe24fc82cff935723b952b224ba158ebecef","user":{"login":"acsaba22","id":2951833,"avatar_url":"https://avatars0.githubusercontent.com/u/2951833?v=4","gravatar_id":"","url":"https://api.github.com/users/acsaba22","html_url":"https://github.com/acsaba22","followers_url":"https://api.github.com/users/acsaba22/followers","following_url":"https://api.github.com/users/acsaba22/following{/other_user}","gists_url":"https://api.github.com/users/acsaba22/gists{/gist_id}","starred_url":"https://api.github.com/users/acsaba22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsaba22/subscriptions","organizations_url":"https://api.github.com/users/acsaba22/orgs","repos_url":"https://api.github.com/users/acsaba22/repos","events_url":"https://api.github.com/users/acsaba22/events{/privacy}","received_events_url":"https://api.github.com/users/acsaba22/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-04-11T12:09:52Z","updated_at":"2018-04-11T12:09:52Z","html_url":"https://github.com/nilcons/crypto-key-derivation/pull/1#discussion_r180730213","pull_request_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/comments/180730213"},"html":{"href":"https://github.com/nilcons/crypto-key-derivation/pull/1#discussion_r180730213"},"pull_request":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1"}},"in_reply_to_id":180689000},"pull_request":{"url":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1","id":180604328,"html_url":"https://github.com/nilcons/crypto-key-derivation/pull/1","diff_url":"https://github.com/nilcons/crypto-key-derivation/pull/1.diff","patch_url":"https://github.com/nilcons/crypto-key-derivation/pull/1.patch","issue_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/issues/1","number":1,"state":"open","locked":false,"title":"Add --check option for verifying word_list correctness and checksum.","user":{"login":"acsaba22","id":2951833,"avatar_url":"https://avatars0.githubusercontent.com/u/2951833?v=4","gravatar_id":"","url":"https://api.github.com/users/acsaba22","html_url":"https://github.com/acsaba22","followers_url":"https://api.github.com/users/acsaba22/followers","following_url":"https://api.github.com/users/acsaba22/following{/other_user}","gists_url":"https://api.github.com/users/acsaba22/gists{/gist_id}","starred_url":"https://api.github.com/users/acsaba22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsaba22/subscriptions","organizations_url":"https://api.github.com/users/acsaba22/orgs","repos_url":"https://api.github.com/users/acsaba22/repos","events_url":"https://api.github.com/users/acsaba22/events{/privacy}","received_events_url":"https://api.github.com/users/acsaba22/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-10T13:35:42Z","updated_at":"2018-04-11T12:09:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58551ed3e2d039afb3df7cb33dc1eeafcb320a8e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/issues/1/comments","statuses_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/statuses/6f2ebe24fc82cff935723b952b224ba158ebecef","head":{"label":"acsaba22:development","ref":"development","sha":"6f2ebe24fc82cff935723b952b224ba158ebecef","user":{"login":"acsaba22","id":2951833,"avatar_url":"https://avatars0.githubusercontent.com/u/2951833?v=4","gravatar_id":"","url":"https://api.github.com/users/acsaba22","html_url":"https://github.com/acsaba22","followers_url":"https://api.github.com/users/acsaba22/followers","following_url":"https://api.github.com/users/acsaba22/following{/other_user}","gists_url":"https://api.github.com/users/acsaba22/gists{/gist_id}","starred_url":"https://api.github.com/users/acsaba22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsaba22/subscriptions","organizations_url":"https://api.github.com/users/acsaba22/orgs","repos_url":"https://api.github.com/users/acsaba22/repos","events_url":"https://api.github.com/users/acsaba22/events{/privacy}","received_events_url":"https://api.github.com/users/acsaba22/received_events","type":"User","site_admin":false},"repo":{"id":128901424,"name":"crypto-key-derivation","full_name":"acsaba22/crypto-key-derivation","owner":{"login":"acsaba22","id":2951833,"avatar_url":"https://avatars0.githubusercontent.com/u/2951833?v=4","gravatar_id":"","url":"https://api.github.com/users/acsaba22","html_url":"https://github.com/acsaba22","followers_url":"https://api.github.com/users/acsaba22/followers","following_url":"https://api.github.com/users/acsaba22/following{/other_user}","gists_url":"https://api.github.com/users/acsaba22/gists{/gist_id}","starred_url":"https://api.github.com/users/acsaba22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acsaba22/subscriptions","organizations_url":"https://api.github.com/users/acsaba22/orgs","repos_url":"https://api.github.com/users/acsaba22/repos","events_url":"https://api.github.com/users/acsaba22/events{/privacy}","received_events_url":"https://api.github.com/users/acsaba22/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/acsaba22/crypto-key-derivation","description":"Document all the mess around bip32+bip39+bip44 and similar key generation schemes","fork":true,"url":"https://api.github.com/repos/acsaba22/crypto-key-derivation","forks_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/forks","keys_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/teams","hooks_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/hooks","issue_events_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/issues/events{/number}","events_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/events","assignees_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/assignees{/user}","branches_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/branches{/branch}","tags_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/tags","blobs_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/git/refs{/sha}","trees_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/statuses/{sha}","languages_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/languages","stargazers_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/stargazers","contributors_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/contributors","subscribers_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/subscribers","subscription_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/subscription","commits_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/commits{/sha}","git_commits_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/git/commits{/sha}","comments_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/comments{/number}","issue_comment_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/issues/comments{/number}","contents_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/contents/{+path}","compare_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/merges","archive_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/downloads","issues_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/issues{/number}","pulls_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/pulls{/number}","milestones_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/milestones{/number}","notifications_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/labels{/name}","releases_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/releases{/id}","deployments_url":"https://api.github.com/repos/acsaba22/crypto-key-derivation/deployments","created_at":"2018-04-10T08:40:25Z","updated_at":"2018-04-10T08:40:28Z","pushed_at":"2018-04-10T13:31:16Z","git_url":"git://github.com/acsaba22/crypto-key-derivation.git","ssh_url":"git@github.com:acsaba22/crypto-key-derivation.git","clone_url":"https://github.com/acsaba22/crypto-key-derivation.git","svn_url":"https://github.com/acsaba22/crypto-key-derivation","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nilcons:master","ref":"master","sha":"e68c9ea9eb70dbb6ed61ef10e1c0a3598f6815c6","user":{"login":"nilcons","id":6595946,"avatar_url":"https://avatars2.githubusercontent.com/u/6595946?v=4","gravatar_id":"","url":"https://api.github.com/users/nilcons","html_url":"https://github.com/nilcons","followers_url":"https://api.github.com/users/nilcons/followers","following_url":"https://api.github.com/users/nilcons/following{/other_user}","gists_url":"https://api.github.com/users/nilcons/gists{/gist_id}","starred_url":"https://api.github.com/users/nilcons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilcons/subscriptions","organizations_url":"https://api.github.com/users/nilcons/orgs","repos_url":"https://api.github.com/users/nilcons/repos","events_url":"https://api.github.com/users/nilcons/events{/privacy}","received_events_url":"https://api.github.com/users/nilcons/received_events","type":"Organization","site_admin":false},"repo":{"id":107526222,"name":"crypto-key-derivation","full_name":"nilcons/crypto-key-derivation","owner":{"login":"nilcons","id":6595946,"avatar_url":"https://avatars2.githubusercontent.com/u/6595946?v=4","gravatar_id":"","url":"https://api.github.com/users/nilcons","html_url":"https://github.com/nilcons","followers_url":"https://api.github.com/users/nilcons/followers","following_url":"https://api.github.com/users/nilcons/following{/other_user}","gists_url":"https://api.github.com/users/nilcons/gists{/gist_id}","starred_url":"https://api.github.com/users/nilcons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilcons/subscriptions","organizations_url":"https://api.github.com/users/nilcons/orgs","repos_url":"https://api.github.com/users/nilcons/repos","events_url":"https://api.github.com/users/nilcons/events{/privacy}","received_events_url":"https://api.github.com/users/nilcons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nilcons/crypto-key-derivation","description":"Document all the mess around bip32+bip39+bip44 and similar key generation schemes","fork":false,"url":"https://api.github.com/repos/nilcons/crypto-key-derivation","forks_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/forks","keys_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/teams","hooks_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/hooks","issue_events_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/issues/events{/number}","events_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/events","assignees_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/assignees{/user}","branches_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/branches{/branch}","tags_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/tags","blobs_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/git/refs{/sha}","trees_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/statuses/{sha}","languages_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/languages","stargazers_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/stargazers","contributors_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/contributors","subscribers_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/subscribers","subscription_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/subscription","commits_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/commits{/sha}","git_commits_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/git/commits{/sha}","comments_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/comments{/number}","issue_comment_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/issues/comments{/number}","contents_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/contents/{+path}","compare_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/merges","archive_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/downloads","issues_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/issues{/number}","pulls_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls{/number}","milestones_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/milestones{/number}","notifications_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/labels{/name}","releases_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/releases{/id}","deployments_url":"https://api.github.com/repos/nilcons/crypto-key-derivation/deployments","created_at":"2017-10-19T09:29:16Z","updated_at":"2018-03-09T08:14:57Z","pushed_at":"2018-04-10T13:35:43Z","git_url":"git://github.com/nilcons/crypto-key-derivation.git","ssh_url":"git@github.com:nilcons/crypto-key-derivation.git","clone_url":"https://github.com/nilcons/crypto-key-derivation.git","svn_url":"https://github.com/nilcons/crypto-key-derivation","homepage":null,"size":11,"stargazers_count":3,"watchers_count":3,"language":"Python","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":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1"},"html":{"href":"https://github.com/nilcons/crypto-key-derivation/pull/1"},"issue":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/issues/1"},"comments":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nilcons/crypto-key-derivation/statuses/6f2ebe24fc82cff935723b952b224ba158ebecef"}},"author_association":"NONE"}}
{"actor":{"display_login":"acsaba22"}}