mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-03-15 09:41:03 +00:00
* Fix Ed25519 PeerID generation This commit pushes further fixes to the generation of Ed25519 peer IDs, building upon the discussion in ipfs/js-ipfs#3591 and the subsequent pull request libp2p/js-libp2p-crypto#185. The purpose of this new pull request is to harmonize the encoding of PeerIDs for Ed25519 keys such that the same new format is used everywhere: peer IDs when assigned upon key generation, peer IDs when shown via key listing, as well as the peer IDs displayed as IPNS names when the key is used as the basis for an IPNS record. Concretely, this changes the peer ID representation of Ed25519 keys from the `Qm...` format to the newer `1...` format. The accompanying test has been modified accordingly. * Satisfy linter
107 lines
3.3 KiB
JSON
107 lines
3.3 KiB
JSON
{
|
|
"name": "libp2p-crypto",
|
|
"version": "0.19.1",
|
|
"description": "Crypto primitives for libp2p",
|
|
"main": "src/index.js",
|
|
"types": "src/index.d.ts",
|
|
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
|
|
"browser": {
|
|
"./src/aes/ciphers.js": "./src/aes/ciphers-browser.js",
|
|
"./src/ciphers/aes-gcm.js": "./src/ciphers/aes-gcm.browser.js",
|
|
"./src/hmac/index.js": "./src/hmac/index-browser.js",
|
|
"./src/keys/ecdh.js": "./src/keys/ecdh-browser.js",
|
|
"./src/keys/rsa.js": "./src/keys/rsa-browser.js"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"dist"
|
|
],
|
|
"scripts": {
|
|
"lint": "aegir lint",
|
|
"build": "aegir build",
|
|
"build-proto": "pbjs --wrap commonjs --target static-module src/keys/keys.proto > src/keys/keys.proto.js",
|
|
"test": "aegir test",
|
|
"test:node": "aegir test -t node",
|
|
"test:browser": "aegir test -t browser -t webworker",
|
|
"release": "aegir release",
|
|
"release-minor": "aegir release --type minor",
|
|
"release-major": "aegir release --type major",
|
|
"coverage": "aegir coverage --ignore src/keys/keys.proto.js",
|
|
"size": "aegir build --bundlesize",
|
|
"test:types": "npx tsc"
|
|
},
|
|
"keywords": [
|
|
"IPFS",
|
|
"libp2p",
|
|
"crypto",
|
|
"rsa",
|
|
"secp256k1"
|
|
],
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"err-code": "^2.0.0",
|
|
"is-typedarray": "^1.0.0",
|
|
"iso-random-stream": "^1.1.0",
|
|
"keypair": "^1.0.1",
|
|
"multibase": "^3.0.0",
|
|
"multicodec": "^2.0.0",
|
|
"multihashes": "^4.0.2",
|
|
"multihashing-async": "^2.0.1",
|
|
"node-forge": "^0.10.0",
|
|
"pem-jwk": "^2.0.0",
|
|
"protons": "^2.0.0",
|
|
"secp256k1": "^4.0.0",
|
|
"uint8arrays": "^1.1.0",
|
|
"ursa-optional": "^0.10.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/chai": "^4.2.12",
|
|
"@types/chai-string": "^1.4.2",
|
|
"@types/dirty-chai": "^2.0.2",
|
|
"@types/mocha": "^8.0.1",
|
|
"aegir": "^25.0.0",
|
|
"benchmark": "^2.1.4",
|
|
"chai": "^4.2.0",
|
|
"chai-string": "^1.5.0",
|
|
"dirty-chai": "^2.0.1",
|
|
"sinon": "^9.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=10.0.0",
|
|
"npm": ">=6.0.0"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/libp2p/js-libp2p-crypto.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/libp2p/js-libp2p-crypto/issues"
|
|
},
|
|
"homepage": "https://github.com/libp2p/js-libp2p-crypto",
|
|
"contributors": [
|
|
"David Dias <daviddias.p@gmail.com>",
|
|
"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
|
|
"Jacob Heun <jacobheun@gmail.com>",
|
|
"Maciej Krüger <mkg20001@gmail.com>",
|
|
"dryajov <dryajov@gmail.com>",
|
|
"Alan Shaw <alan.shaw@protocol.ai>",
|
|
"Hugo Dias <hugomrdias@gmail.com>",
|
|
"Cayman <caymannava@gmail.com>",
|
|
"Yusef Napora <yusef@napora.org>",
|
|
"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ <victorbjelkholm@gmail.com>",
|
|
"Alex Potsides <alex@achingbrain.net>",
|
|
"Vasco Santos <vasco.santos@ua.pt>",
|
|
"Arve Knudsen <arve.knudsen@gmail.com>",
|
|
"Alberto Elias <hi@albertoelias.me>",
|
|
"Jack Kleeman <jackkleeman@gmail.com>",
|
|
"Richard Littauer <richard.littauer@gmail.com>",
|
|
"Richard Schneider <makaretu@gmail.com>",
|
|
"dirkmc <dirkmdev@gmail.com>",
|
|
"nikuda <nikuda@gmail.com>",
|
|
"Joao Santos <jrmsantos15@gmail.com>",
|
|
"Carson Farmer <carson.farmer@gmail.com>",
|
|
"Tom Swindell <t.swindell@rubyx.co.uk>",
|
|
"Nadim Kobeissi <nadim@symbolic.software>"
|
|
]
|
|
}
|