{"action":"created","issue":{"url":"https://api.github.com/repos/keybase/kbpgp/issues/76","labels_url":"https://api.github.com/repos/keybase/kbpgp/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/keybase/kbpgp/issues/76/comments","events_url":"https://api.github.com/repos/keybase/kbpgp/issues/76/events","html_url":"https://github.com/keybase/kbpgp/issues/76","id":90778998,"number":76,"title":"No valid primary key self-signature","user":{"login":"jzila","id":59594,"avatar_url":"https://avatars.githubusercontent.com/u/59594?v=3","gravatar_id":"","url":"https://api.github.com/users/jzila","html_url":"https://github.com/jzila","followers_url":"https://api.github.com/users/jzila/followers","following_url":"https://api.github.com/users/jzila/following{/other_user}","gists_url":"https://api.github.com/users/jzila/gists{/gist_id}","starred_url":"https://api.github.com/users/jzila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jzila/subscriptions","organizations_url":"https://api.github.com/users/jzila/orgs","repos_url":"https://api.github.com/users/jzila/repos","events_url":"https://api.github.com/users/jzila/events{/privacy}","received_events_url":"https://api.github.com/users/jzila/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T20:59:21Z","updated_at":"2015-06-24T21:06:54Z","closed_at":null,"body":"I'm getting a failure to handle a self-signed ECC key, whereas the RSA one works perfectly.\r\n\r\n```\r\nno valid primary key self-signature\r\n    at KeyBlock._check_primary (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/processor.js:85:57)\r\n    at KeyBlock._check_keys (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/processor.js:80:19)\r\n    at /home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/processor.js:139:25\r\n    at Deferrals.exports.Deferrals.Deferrals._call (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/node_modules/iced-runtime/lib/runtime.js:86:16)\r\n    at /home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/node_modules/iced-runtime/lib/runtime.js:98:26\r\n    at exports.trampoline.trampoline (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/node_modules/iced-runtime/lib/runtime.js:64:14)\r\n    at Deferrals.exports.Deferrals.Deferrals._fulfill (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/node_modules/iced-runtime/lib/runtime.js:96:16)\r\n    at _ref1 (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/processor.js:129:32)\r\n    at _ref1 (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/processor.js:130:15)\r\n    at KeyBlock.process (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/processor.js:135:15)\r\n    at warnings (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/keymanager.js:1315:18)\r\n    at KeyManager.primary (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/keymanager.js:1324:15)\r\n    at Function.KeyManager.import_from_pgp_message (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/keymanager.js:1331:15)\r\n    at iced.Deferrals.parent (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/keymanager.js:1058:26)\r\n    at iced.Deferrals.parent (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/keymanager.js:1073:15)\r\n    at Function.KeyManager.import_from_armored_pgp (/home/john/repos/kb-login-ext/node_modules/kb-signin/node_modules/kbpgp/lib/openpgp/keymanager.js:1078:15)\r\n```\r\n\r\nKeypair generation code (without `ecc: true` it works perfectly):\r\n```JavaScript\r\n    var opts = {\r\n        userid: \"Keybase Login Extension\",\r\n        primary: {\r\n            nbits:     384,\r\n            ecc:       true,\r\n            flags:     F.certify_keys | F.sign_data | F.auth | F.encrypt_comm | F.encrypt_storage,\r\n            expire_in: 60 * 15\r\n        },\r\n        subkeys: [{\r\n            nbits:     384,\r\n            flags:     F.sign_data,\r\n            expire_in: 60 * 15\r\n        }]\r\n    };\r\n```\r\n\r\nI want to use ECC because it's WAAAAY faster."},"comment":{"url":"https://api.github.com/repos/keybase/kbpgp/issues/comments/115012504","html_url":"https://github.com/keybase/kbpgp/issues/76#issuecomment-115012504","issue_url":"https://api.github.com/repos/keybase/kbpgp/issues/76","id":115012504,"user":{"login":"maxtaco","id":866815,"avatar_url":"https://avatars.githubusercontent.com/u/866815?v=3","gravatar_id":"","url":"https://api.github.com/users/maxtaco","html_url":"https://github.com/maxtaco","followers_url":"https://api.github.com/users/maxtaco/followers","following_url":"https://api.github.com/users/maxtaco/following{/other_user}","gists_url":"https://api.github.com/users/maxtaco/gists{/gist_id}","starred_url":"https://api.github.com/users/maxtaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxtaco/subscriptions","organizations_url":"https://api.github.com/users/maxtaco/orgs","repos_url":"https://api.github.com/users/maxtaco/repos","events_url":"https://api.github.com/users/maxtaco/events{/privacy}","received_events_url":"https://api.github.com/users/maxtaco/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T21:06:54Z","updated_at":"2015-06-24T21:06:54Z","body":"Can you provide more context?  I.e., a self-contained snippet to reproduce the issue? Thanks."}}