{"comment":{"url":"https://api.github.com/repos/citizencode/trust-exchange/comments/16017914","html_url":"https://github.com/citizencode/trust-exchange/commit/b85351c95f27ee96575ec04c43860e484213169f#commitcomment-16017914","id":16017914,"user":{"login":"dominictarr","id":259374,"avatar_url":"https://avatars.githubusercontent.com/u/259374?v=3","gravatar_id":"","url":"https://api.github.com/users/dominictarr","html_url":"https://github.com/dominictarr","followers_url":"https://api.github.com/users/dominictarr/followers","following_url":"https://api.github.com/users/dominictarr/following{/other_user}","gists_url":"https://api.github.com/users/dominictarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dominictarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominictarr/subscriptions","organizations_url":"https://api.github.com/users/dominictarr/orgs","repos_url":"https://api.github.com/users/dominictarr/repos","events_url":"https://api.github.com/users/dominictarr/events{/privacy}","received_events_url":"https://api.github.com/users/dominictarr/received_events","type":"User","site_admin":false},"position":17,"line":10,"path":"spike/sign.coffee","commit_id":"b85351c95f27ee96575ec04c43860e484213169f","created_at":"2016-02-10T21:35:14Z","updated_at":"2016-02-10T21:35:14Z","body":"If you have to use javascript crypto, it would be better to use https://www.npmjs.com/package/chloride\r\nthat gives you a consistent interface to libsodium, either the sodium bindings in node (if you can compile it) or the ecmascript compiled version when you in a pure js enviroment. It's the pure JS version is pretty fast in firefox, because it has the optimizations for asm.js.\r\n\r\nThis would mean using ed25519 instead of RSA, but this is a kind of decision change you can easily make early in development. And ed25519 is considered by many to be the best option currently. "}}