git ssb

1+

Dominic / ssb-keys



Commit bc976c6da636fee26b5ecccf6f7b24831ad881f4

use sodium by default, and fall back to libsodium-wrappers in the browser

Dominic Tarr committed on 5/31/2015, 9:26:59 PM
Parent: f6c145b55243dd7497f5f1ce723bd4c4c4334b2f

Files changed

index.jschanged
package.jsonchanged
index.jsView
@@ -189,9 +189,9 @@
189189
190190 // DIGITAL SIGNATURES
191191
192192 var curves = {
193- ed25519 : require('./browser-sodium'),
193+ ed25519 : require('./sodium'),
194194 k256 : ecc //LEGACY
195195 }
196196
197197 function getCurve(keys) {
package.jsonView
@@ -18,8 +18,11 @@
1818 },
1919 "devDependencies": {
2020 "tape": "~3.0.0"
2121 },
22+ "browser": {
23+ "./sodium": "./browser-sodium"
24+ },
2225 "scripts": {
2326 "test": "set -e; for t in test/*.js; do node $t; done"
2427 },
2528 "author": "Paul Frazee <pfrazee@gmail.com>",

Built with git-ssb-web