diff --git a/package.json b/package.json index 3ccc9a8..3355d97 100644 --- a/package.json +++ b/package.json @@ -33,11 +33,12 @@ "author": "Friedel Ziegelmayer ", "license": "MIT", "dependencies": { - "multihashing-async": "~0.4.2", "asn1.js": "^4.9.1", "async": "^2.1.4", "browserify-aes": "^1.0.6", "keypair": "^1.0.1", + "libp2p-crypto-secp256k1": "^0.1.3", + "multihashing-async": "~0.4.2", "nodeify": "^1.0.0", "pem-jwk": "^1.5.1", "protocol-buffers": "^3.2.1", @@ -81,4 +82,4 @@ "greenkeeperio-bot ", "nikuda " ] -} \ No newline at end of file +} diff --git a/src/keys/index.js b/src/keys/index.js index 0f1baad..2e4443a 100644 --- a/src/keys/index.js +++ b/src/keys/index.js @@ -2,10 +2,6 @@ module.exports = { rsa: require('./rsa'), - ed25519: require('./ed25519') -} - -try { - module.exports.secp256k1 = require('libp2p-crypto-secp256k1') -} catch (err) { + ed25519: require('./ed25519'), + secp256k1: require('libp2p-crypto-secp256k1') }