mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-03-15 10:30:50 +00:00
fix: add libp2p-crypto-secp256k1
This commit is contained in:
parent
8a95de4700
commit
c73adb00cc
@ -33,11 +33,12 @@
|
||||
"author": "Friedel Ziegelmayer <dignifiedqurie@gmail.com>",
|
||||
"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 <support@greenkeeper.io>",
|
||||
"nikuda <nikuda@gmail.com>"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -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')
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user