{"action":"created","issue":{"url":"https://api.github.com/repos/solatis/haskell-network-anonymous-tor/issues/4","labels_url":"https://api.github.com/repos/solatis/haskell-network-anonymous-tor/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/solatis/haskell-network-anonymous-tor/issues/4/comments","events_url":"https://api.github.com/repos/solatis/haskell-network-anonymous-tor/issues/4/events","html_url":"https://github.com/solatis/haskell-network-anonymous-tor/pull/4","id":112464364,"number":4,"title":"Add support for persistent hidden services","user":{"login":"froozen","id":1943632,"avatar_url":"https://avatars.githubusercontent.com/u/1943632?v=3","gravatar_id":"","url":"https://api.github.com/users/froozen","html_url":"https://github.com/froozen","followers_url":"https://api.github.com/users/froozen/followers","following_url":"https://api.github.com/users/froozen/following{/other_user}","gists_url":"https://api.github.com/users/froozen/gists{/gist_id}","starred_url":"https://api.github.com/users/froozen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froozen/subscriptions","organizations_url":"https://api.github.com/users/froozen/orgs","repos_url":"https://api.github.com/users/froozen/repos","events_url":"https://api.github.com/users/froozen/events{/privacy}","received_events_url":"https://api.github.com/users/froozen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-20T21:27:06Z","updated_at":"2015-10-22T20:33:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/solatis/haskell-network-anonymous-tor/pulls/4","html_url":"https://github.com/solatis/haskell-network-anonymous-tor/pull/4","diff_url":"https://github.com/solatis/haskell-network-anonymous-tor/pull/4.diff","patch_url":"https://github.com/solatis/haskell-network-anonymous-tor/pull/4.patch"},"body":"I need them for a project I'm working on and thought other people might need it as well.\r\n\r\nI haven't found any nice ways to generate that private key, though. One possible way is, to first call`ADD_ONION` on some random local port, taking the key generated by it and destroying the hidden service using `DEL_ONION`.\r\nShould I push the code for that as well or is it too much of a hack?"},"comment":{"url":"https://api.github.com/repos/solatis/haskell-network-anonymous-tor/issues/comments/150348414","html_url":"https://github.com/solatis/haskell-network-anonymous-tor/pull/4#issuecomment-150348414","issue_url":"https://api.github.com/repos/solatis/haskell-network-anonymous-tor/issues/4","id":150348414,"user":{"login":"froozen","id":1943632,"avatar_url":"https://avatars.githubusercontent.com/u/1943632?v=3","gravatar_id":"","url":"https://api.github.com/users/froozen","html_url":"https://github.com/froozen","followers_url":"https://api.github.com/users/froozen/followers","following_url":"https://api.github.com/users/froozen/following{/other_user}","gists_url":"https://api.github.com/users/froozen/gists{/gist_id}","starred_url":"https://api.github.com/users/froozen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/froozen/subscriptions","organizations_url":"https://api.github.com/users/froozen/orgs","repos_url":"https://api.github.com/users/froozen/repos","events_url":"https://api.github.com/users/froozen/events{/privacy}","received_events_url":"https://api.github.com/users/froozen/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T20:33:07Z","updated_at":"2015-10-22T20:33:07Z","body":">   The server response will only include a private key if the server was\r\n  requested to generate a new keypair, and also the \"DiscardPK\" flag was\r\n  not specified. (Note that if \"DiscardPK\" flag is specified, there is no\r\n  way to recreate the generated keypair and the corresponding Onion\r\n  Service at a later date).\r\n\r\nSeems like we do need a dedicated key generation function if we don't want a ton of special cases for these functions."}}