{"action":"closed","issue":{"url":"https://api.github.com/repos/simo5/jwcrypto/issues/8","labels_url":"https://api.github.com/repos/simo5/jwcrypto/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/simo5/jwcrypto/issues/8/comments","events_url":"https://api.github.com/repos/simo5/jwcrypto/issues/8/events","html_url":"https://github.com/simo5/jwcrypto/issues/8","id":92132999,"number":8,"title":"export individual public or private key?","user":{"login":"franks42","id":181214,"avatar_url":"https://avatars.githubusercontent.com/u/181214?v=3","gravatar_id":"","url":"https://api.github.com/users/franks42","html_url":"https://github.com/franks42","followers_url":"https://api.github.com/users/franks42/followers","following_url":"https://api.github.com/users/franks42/following{/other_user}","gists_url":"https://api.github.com/users/franks42/gists{/gist_id}","starred_url":"https://api.github.com/users/franks42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/franks42/subscriptions","organizations_url":"https://api.github.com/users/franks42/orgs","repos_url":"https://api.github.com/users/franks42/repos","events_url":"https://api.github.com/users/franks42/events{/privacy}","received_events_url":"https://api.github.com/users/franks42/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-30T16:06:57Z","updated_at":"2015-06-30T17:09:04Z","closed_at":"2015-06-30T17:09:04Z","body":"When I generate a key-pair with:\r\n\r\n    k = jwk.JWK(generate='EC', crv='P-256', use='enc', kid='9876543210')\r\n\r\nI'd like to \"export\" the public key in json format to communicate it to other parties. My understanding from reading the example code and API was, that I could possibly do that with:\r\n\r\n    pk = k.get_op_key('encrypt')\r\n    pk_json = pk.export()\r\n\r\nbut that doesn't work: \"AttributeError: '_EllipticCurvePublicKey' object has no attribute 'export'\"\r\n\r\nCouldn't find any explicit example of this in the test code. Maybe I am missing something?\r\nThanks for the help - Frank.\r\n"}}