{"action":"created","issue":{"url":"https://api.github.com/repos/mappum/blockchain-spv/issues/13","repository_url":"https://api.github.com/repos/mappum/blockchain-spv","labels_url":"https://api.github.com/repos/mappum/blockchain-spv/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/mappum/blockchain-spv/issues/13/comments","events_url":"https://api.github.com/repos/mappum/blockchain-spv/issues/13/events","html_url":"https://github.com/mappum/blockchain-spv/issues/13","id":145965930,"number":13,"title":"Make params JSON-friendly?","user":{"login":"paulkernfeld","id":433803,"avatar_url":"https://avatars.githubusercontent.com/u/433803?v=3","gravatar_id":"","url":"https://api.github.com/users/paulkernfeld","html_url":"https://github.com/paulkernfeld","followers_url":"https://api.github.com/users/paulkernfeld/followers","following_url":"https://api.github.com/users/paulkernfeld/following{/other_user}","gists_url":"https://api.github.com/users/paulkernfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/paulkernfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulkernfeld/subscriptions","organizations_url":"https://api.github.com/users/paulkernfeld/orgs","repos_url":"https://api.github.com/users/paulkernfeld/repos","events_url":"https://api.github.com/users/paulkernfeld/events{/privacy}","received_events_url":"https://api.github.com/users/paulkernfeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-05T11:54:50Z","updated_at":"2016-04-05T19:13:54Z","closed_at":null,"body":"The params object is *almost* JSON-friendly, except that it takes in buffers for prevHash and merkleRoot. What if it accepted hex strings instead of, or in addition to buffers? That would be cool for me especially, because it would make it easy to load configuration from files. For example, see the \"Setup\" section [here](https://github.com/paulkernfeld/decentralized-cat-names/blob/master/blog.md)."},"comment":{"url":"https://api.github.com/repos/mappum/blockchain-spv/issues/comments/205953697","html_url":"https://github.com/mappum/blockchain-spv/issues/13#issuecomment-205953697","issue_url":"https://api.github.com/repos/mappum/blockchain-spv/issues/13","id":205953697,"user":{"login":"mappum","id":398285,"avatar_url":"https://avatars.githubusercontent.com/u/398285?v=3","gravatar_id":"","url":"https://api.github.com/users/mappum","html_url":"https://github.com/mappum","followers_url":"https://api.github.com/users/mappum/followers","following_url":"https://api.github.com/users/mappum/following{/other_user}","gists_url":"https://api.github.com/users/mappum/gists{/gist_id}","starred_url":"https://api.github.com/users/mappum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mappum/subscriptions","organizations_url":"https://api.github.com/users/mappum/orgs","repos_url":"https://api.github.com/users/mappum/repos","events_url":"https://api.github.com/users/mappum/events{/privacy}","received_events_url":"https://api.github.com/users/mappum/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T19:13:54Z","updated_at":"2016-04-05T19:13:54Z","body":"You're probably right about that, and I think the best way to do that would be to remove the checkpoints from the params and have them passed in as options to the Blockchain constructor. What do you think?"}}