mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-06-23 01:01:39 +00:00
fix: add libp2p-crypto-secp256k1
This commit is contained in:
@ -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')
|
||||
}
|
||||
|
Reference in New Issue
Block a user