{"action":"created","issue":{"url":"https://api.github.com/repos/indutny/bn.js/issues/12","labels_url":"https://api.github.com/repos/indutny/bn.js/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/indutny/bn.js/issues/12/comments","events_url":"https://api.github.com/repos/indutny/bn.js/issues/12/events","html_url":"https://github.com/indutny/bn.js/pull/12","id":35545210,"number":12,"title":"toArray format and exporting functions","user":{"login":"dcousens","id":413395,"avatar_url":"https://avatars.githubusercontent.com/u/413395?v=3","gravatar_id":"","url":"https://api.github.com/users/dcousens","html_url":"https://github.com/dcousens","followers_url":"https://api.github.com/users/dcousens/followers","following_url":"https://api.github.com/users/dcousens/following{/other_user}","gists_url":"https://api.github.com/users/dcousens/gists{/gist_id}","starred_url":"https://api.github.com/users/dcousens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcousens/subscriptions","organizations_url":"https://api.github.com/users/dcousens/orgs","repos_url":"https://api.github.com/users/dcousens/repos","events_url":"https://api.github.com/users/dcousens/events{/privacy}","received_events_url":"https://api.github.com/users/dcousens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-06-12T02:18:36Z","updated_at":"2015-01-11T03:46:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/indutny/bn.js/pulls/12","html_url":"https://github.com/indutny/bn.js/pull/12","diff_url":"https://github.com/indutny/bn.js/pull/12.diff","patch_url":"https://github.com/indutny/bn.js/pull/12.patch"},"body":"This pull request is intended to be iterative, it currently contains failing tests, and is mostly an inquiry into what is `toArray`'s current behaviour, what it should return, and what should or shouldn't be supported.\r\n\r\nThe test fixtures are my test fixtures from https://github.com/cryptocoinjs/bigi, and currently contain superfluous data not (yet) necessary for `bn.js`.\r\n\r\n@indutny, if you could answer the above question as to what you are happy to support, and what `toArray` is currently meant to be returning (it is not yet tested, nor clear).\r\n\r\nThe test data currently contains the following expected data:\r\n* `DER` (twos complement big-endian integer representation) data,\r\n* `hex` (unsigned big-endian integer), and\r\n* `hexPadded`: `hex` but with `0` padding out to `64` bytes\r\n\r\nThe input data:\r\n* `dec` is the signed integer. and\r\n* `udec` is the unsigned equivalent."},"comment":{"url":"https://api.github.com/repos/indutny/bn.js/issues/comments/69482517","html_url":"https://github.com/indutny/bn.js/pull/12#issuecomment-69482517","issue_url":"https://api.github.com/repos/indutny/bn.js/issues/12","id":69482517,"user":{"login":"dcousens","id":413395,"avatar_url":"https://avatars.githubusercontent.com/u/413395?v=3","gravatar_id":"","url":"https://api.github.com/users/dcousens","html_url":"https://github.com/dcousens","followers_url":"https://api.github.com/users/dcousens/followers","following_url":"https://api.github.com/users/dcousens/following{/other_user}","gists_url":"https://api.github.com/users/dcousens/gists{/gist_id}","starred_url":"https://api.github.com/users/dcousens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcousens/subscriptions","organizations_url":"https://api.github.com/users/dcousens/orgs","repos_url":"https://api.github.com/users/dcousens/repos","events_url":"https://api.github.com/users/dcousens/events{/privacy}","received_events_url":"https://api.github.com/users/dcousens/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T03:46:04Z","updated_at":"2015-01-11T03:46:04Z","body":"I will get back to this soon and re-evaluate if this is the best way to do it.  "}}