{"action":"opened","issue":{"url":"https://api.github.com/repos/phpecc/console/issues/3","repository_url":"https://api.github.com/repos/phpecc/console","labels_url":"https://api.github.com/repos/phpecc/console/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/phpecc/console/issues/3/comments","events_url":"https://api.github.com/repos/phpecc/console/issues/3/events","html_url":"https://github.com/phpecc/console/issues/3","id":140486608,"number":3,"title":"Key Pair Creation","user":{"login":"Spomky","id":1091072,"avatar_url":"https://avatars.githubusercontent.com/u/1091072?v=3","gravatar_id":"","url":"https://api.github.com/users/Spomky","html_url":"https://github.com/Spomky","followers_url":"https://api.github.com/users/Spomky/followers","following_url":"https://api.github.com/users/Spomky/following{/other_user}","gists_url":"https://api.github.com/users/Spomky/gists{/gist_id}","starred_url":"https://api.github.com/users/Spomky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spomky/subscriptions","organizations_url":"https://api.github.com/users/Spomky/orgs","repos_url":"https://api.github.com/users/Spomky/repos","events_url":"https://api.github.com/users/Spomky/events{/privacy}","received_events_url":"https://api.github.com/users/Spomky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-13T13:40:45Z","updated_at":"2016-03-13T13:40:45Z","closed_at":null,"body":"Hi all,\r\n\r\nI am trying to create a key pair but I noticed that `x` and `y` values are always the same. Only the `d` parameter of the private key is different.\r\n\r\nExample:\r\n```php\r\n<?php\r\n\r\ninclude_once(__DIR__.'/vendor/autoload.php');\r\n\r\nuse Mdanter\\Ecc\\Curves\\CurveFactory;\r\n\r\n$curveName = 'nist-p256';\r\nmt_srand();\r\n$generator = CurveFactory::getGeneratorByName($curveName);\r\n$privKey = $generator->createPrivateKey();\r\n$pubKey = $privKey->getPublicKey();\r\n\r\nprintf('x: %s'.PHP_EOL, $privKey->getPoint()->getX());\r\nprintf('y: %s'.PHP_EOL, $privKey->getPoint()->getY());\r\nprintf('d: %s'.PHP_EOL, $privKey->getSecret());\r\n```\r\n\r\nThis small script always returns something like:\r\n```sh\r\nx: 48439561293906451759052585252797914202762949526041747995844080717082404635286\r\ny: 36134250956749795798585127919587881956611106672985015071877198253568414405109\r\nd: random value here\r\n```\r\n\r\nWhat am I doing wrong?\r\nDo I need to initialize something before the key creation?\r\n"}}