{"action":"created","issue":{"url":"https://api.github.com/repos/indutny/elliptic/issues/116","repository_url":"https://api.github.com/repos/indutny/elliptic","labels_url":"https://api.github.com/repos/indutny/elliptic/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/indutny/elliptic/issues/116/comments","events_url":"https://api.github.com/repos/indutny/elliptic/issues/116/events","html_url":"https://github.com/indutny/elliptic/issues/116","id":195130020,"number":116,"title":".derive - d.mul is not defined","user":{"login":"caih","id":12991459,"avatar_url":"https://avatars.githubusercontent.com/u/12991459?v=3","gravatar_id":"","url":"https://api.github.com/users/caih","html_url":"https://github.com/caih","followers_url":"https://api.github.com/users/caih/followers","following_url":"https://api.github.com/users/caih/following{/other_user}","gists_url":"https://api.github.com/users/caih/gists{/gist_id}","starred_url":"https://api.github.com/users/caih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caih/subscriptions","organizations_url":"https://api.github.com/users/caih/orgs","repos_url":"https://api.github.com/users/caih/repos","events_url":"https://api.github.com/users/caih/events{/privacy}","received_events_url":"https://api.github.com/users/caih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T00:52:46Z","updated_at":"2016-12-13T11:16:30Z","closed_at":null,"body":"How do I pass an array buffer to the `.derive` function?"},"comment":{"url":"https://api.github.com/repos/indutny/elliptic/issues/comments/266712619","html_url":"https://github.com/indutny/elliptic/issues/116#issuecomment-266712619","issue_url":"https://api.github.com/repos/indutny/elliptic/issues/116","id":266712619,"user":{"login":"fanatid","id":2633065,"avatar_url":"https://avatars.githubusercontent.com/u/2633065?v=3","gravatar_id":"","url":"https://api.github.com/users/fanatid","html_url":"https://github.com/fanatid","followers_url":"https://api.github.com/users/fanatid/followers","following_url":"https://api.github.com/users/fanatid/following{/other_user}","gists_url":"https://api.github.com/users/fanatid/gists{/gist_id}","starred_url":"https://api.github.com/users/fanatid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fanatid/subscriptions","organizations_url":"https://api.github.com/users/fanatid/orgs","repos_url":"https://api.github.com/users/fanatid/repos","events_url":"https://api.github.com/users/fanatid/events{/privacy}","received_events_url":"https://api.github.com/users/fanatid/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T11:16:30Z","updated_at":"2016-12-13T11:16:30Z","body":"```js\r\nconst EC = require('elliptic').ec\r\nconst curve = new EC('secp256k1')\r\nconst { randomBytes } = require('crypto')\r\n\r\nconst priv = curve.keyFromPrivate(Uint8Array.from(randomBytes(32)))\r\nconst pubKey = Buffer.concat([Buffer.from([0x02]), randomBytes(32)])\r\nconst pub = curve.keyFromPublic(Uint8Array.from(pubKey))\r\nconsole.log(priv.derive(pub.getPublic()))\r\n```"}}
{"actor":{"display_login":"fanatid"}}