Skip to content

Commit

Permalink
fix: use @libp2p/keychain module instead of bundling source code (#1569)
Browse files Browse the repository at this point in the history
The @libp2p/keychain module has the keychain code split out from this module so use that instead of bundling the code here.

It's also dropped it's dependency on `node-forge` so it's now only in `@libp2p/crypto`.
  • Loading branch information
achingbrain authored Feb 6, 2023
1 parent deaa148 commit c02e1bd
Show file tree
Hide file tree
Showing 12 changed files with 17 additions and 1,719 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
"@libp2p/interface-connection-manager": "^1.1.1",
"@libp2p/interface-content-routing": "^2.0.0",
"@libp2p/interface-dht": "^2.0.0",
"@libp2p/interface-keychain": "^2.0.4",
"@libp2p/interface-libp2p": "^1.0.0",
"@libp2p/interface-metrics": "^4.0.0",
"@libp2p/interface-peer-discovery": "^1.0.1",
Expand All @@ -114,6 +115,7 @@
"@libp2p/interface-stream-muxer": "^3.0.0",
"@libp2p/interface-transport": "^2.1.0",
"@libp2p/interfaces": "^3.0.3",
"@libp2p/keychain": "^1.0.0",
"@libp2p/logger": "^2.0.1",
"@libp2p/multistream-select": "^3.0.0",
"@libp2p/peer-collections": "^3.0.0",
Expand All @@ -136,7 +138,6 @@
"it-drain": "^2.0.0",
"it-filter": "^2.0.0",
"it-first": "^2.0.0",
"it-foreach": "^1.0.0",
"it-handshake": "^4.1.2",
"it-length-prefixed": "^8.0.2",
"it-map": "^2.0.0",
Expand All @@ -147,15 +148,13 @@
"it-stream-types": "^1.0.4",
"merge-options": "^3.0.4",
"multiformats": "^11.0.0",
"node-forge": "^1.3.1",
"p-fifo": "^1.0.0",
"p-retry": "^5.0.0",
"p-settle": "^5.0.0",
"private-ip": "^3.0.0",
"protons-runtime": "^4.0.1",
"rate-limiter-flexible": "^2.3.11",
"retimer": "^3.0.0",
"sanitize-filename": "^1.6.3",
"set-delayed-interval": "^1.0.0",
"timeout-abort-controller": "^3.0.0",
"uint8arraylist": "^2.3.2",
Expand Down Expand Up @@ -183,7 +182,6 @@
"@libp2p/topology": "^4.0.0",
"@libp2p/webrtc-star": "^6.0.0",
"@libp2p/websockets": "^5.0.0",
"@types/node-forge": "^1.0.0",
"@types/p-fifo": "^1.0.0",
"@types/varint": "^6.0.0",
"@types/xsalsa20": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import type { PingServiceInit } from './ping/index.js'
import type { FetchServiceInit } from './fetch/index.js'
import type { Components } from './components.js'
import type { Libp2p } from '@libp2p/interface-libp2p'
import type { KeyChainInit } from './keychain/index.js'
import type { KeyChainInit } from '@libp2p/keychain'
import type { NatManagerInit } from './nat-manager.js'
import type { AddressManagerInit } from './address-manager/index.js'
import type { PeerRoutingInit } from './peer-routing.js'
Expand Down
55 changes: 0 additions & 55 deletions src/keychain/README.md

This file was deleted.

150 changes: 0 additions & 150 deletions src/keychain/cms.ts

This file was deleted.

Binary file removed src/keychain/doc/private-key.png
Binary file not shown.
1 change: 0 additions & 1 deletion src/keychain/doc/private-key.xml

This file was deleted.

Loading

0 comments on commit c02e1bd

Please sign in to comment.