{"action":"created","issue":{"url":"https://api.github.com/repos/grondilu/libbitcoin-perl/issues/2","labels_url":"https://api.github.com/repos/grondilu/libbitcoin-perl/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/grondilu/libbitcoin-perl/issues/2/comments","events_url":"https://api.github.com/repos/grondilu/libbitcoin-perl/issues/2/events","html_url":"https://github.com/grondilu/libbitcoin-perl/issues/2","id":65064202,"number":2,"title":"How do i get compressed public keys?","user":{"login":"buzztiaan","id":940336,"avatar_url":"https://avatars.githubusercontent.com/u/940336?v=3","gravatar_id":"","url":"https://api.github.com/users/buzztiaan","html_url":"https://github.com/buzztiaan","followers_url":"https://api.github.com/users/buzztiaan/followers","following_url":"https://api.github.com/users/buzztiaan/following{/other_user}","gists_url":"https://api.github.com/users/buzztiaan/gists{/gist_id}","starred_url":"https://api.github.com/users/buzztiaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzztiaan/subscriptions","organizations_url":"https://api.github.com/users/buzztiaan/orgs","repos_url":"https://api.github.com/users/buzztiaan/repos","events_url":"https://api.github.com/users/buzztiaan/events{/privacy}","received_events_url":"https://api.github.com/users/buzztiaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-29T14:03:30Z","updated_at":"2015-03-29T15:25:30Z","closed_at":null,"body":"I am making a 'input 64 hexadecimal dice rolls and get two priv/pub keys' program, and was looking for some speedincrease.\r\n\r\nYour library seems faster than my current code, but, i fail to be able to get the compressed keys from it.\r\nCare to write a small example for that?\r\n\r\nThis gives me the uncompressed one ; \r\n\r\nmy $privkey = new EC::DSA::PrivateKey  1;\r\nmy $key = new Bitcoin::Key $privkey;\r\n\r\nprint $key;\r\nprint \"\\n\";\r\nprint $key->address;\r\nprint \"\\n\";\r\n\r\nWas messing with EC::DSA::PublicKey::UnCompressed but doesnt seem to even be used to make an address?"},"comment":{"url":"https://api.github.com/repos/grondilu/libbitcoin-perl/issues/comments/87427306","html_url":"https://github.com/grondilu/libbitcoin-perl/issues/2#issuecomment-87427306","issue_url":"https://api.github.com/repos/grondilu/libbitcoin-perl/issues/2","id":87427306,"user":{"login":"buzztiaan","id":940336,"avatar_url":"https://avatars.githubusercontent.com/u/940336?v=3","gravatar_id":"","url":"https://api.github.com/users/buzztiaan","html_url":"https://github.com/buzztiaan","followers_url":"https://api.github.com/users/buzztiaan/followers","following_url":"https://api.github.com/users/buzztiaan/following{/other_user}","gists_url":"https://api.github.com/users/buzztiaan/gists{/gist_id}","starred_url":"https://api.github.com/users/buzztiaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buzztiaan/subscriptions","organizations_url":"https://api.github.com/users/buzztiaan/orgs","repos_url":"https://api.github.com/users/buzztiaan/repos","events_url":"https://api.github.com/users/buzztiaan/events{/privacy}","received_events_url":"https://api.github.com/users/buzztiaan/received_events","type":"User","site_admin":false},"created_at":"2015-03-29T15:25:30Z","updated_at":"2015-03-29T15:25:30Z","body":"But don't I need it on the EC::DSA::PrivateKey?\r\n\r\nThe Bitcoin::Key doesnt have a public_key method, nor a compress ..\r\nAs far as I can see, only EC::DSA::PublicKey::UnCompressed has the compress method, but as far as i can see I can't use it's output to feed into Bitcoin::Key to get a priv/pubkey pair to use for the wallet?"}}