{"action":"created","issue":{"url":"https://api.github.com/repos/indutny/bn.js/issues/76","labels_url":"https://api.github.com/repos/indutny/bn.js/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/indutny/bn.js/issues/76/comments","events_url":"https://api.github.com/repos/indutny/bn.js/issues/76/events","html_url":"https://github.com/indutny/bn.js/pull/76","id":119774731,"number":76,"title":"Add .toBuffer() to return a node.js Buffer","user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-01T18:06:52Z","updated_at":"2016-01-14T13:42:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/indutny/bn.js/pulls/76","html_url":"https://github.com/indutny/bn.js/pull/76","diff_url":"https://github.com/indutny/bn.js/pull/76.diff","patch_url":"https://github.com/indutny/bn.js/pull/76.patch"},"body":"As the constructor already supports Buffer as an input, it would make sense to make this bidirectional.\r\n\r\nBuffer+BN together is used extensively in ethereumjs-vm and ethereumjs-abi to encode/decode bytecode.\r\n\r\nAdded the .toBuffer() as a new feature which asserts on Buffer being present. Comes with its own test.\r\n\r\nAlso added tests for using Buffer as an input to the constructor."},"comment":{"url":"https://api.github.com/repos/indutny/bn.js/issues/comments/171647612","html_url":"https://github.com/indutny/bn.js/pull/76#issuecomment-171647612","issue_url":"https://api.github.com/repos/indutny/bn.js/issues/76","id":171647612,"user":{"login":"axic","id":20340,"avatar_url":"https://avatars.githubusercontent.com/u/20340?v=3","gravatar_id":"","url":"https://api.github.com/users/axic","html_url":"https://github.com/axic","followers_url":"https://api.github.com/users/axic/followers","following_url":"https://api.github.com/users/axic/following{/other_user}","gists_url":"https://api.github.com/users/axic/gists{/gist_id}","starred_url":"https://api.github.com/users/axic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axic/subscriptions","organizations_url":"https://api.github.com/users/axic/orgs","repos_url":"https://api.github.com/users/axic/repos","events_url":"https://api.github.com/users/axic/events{/privacy}","received_events_url":"https://api.github.com/users/axic/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T13:42:39Z","updated_at":"2016-01-14T13:42:39Z","body":"@indutny do you think this can be merged now?"}}