Skip to content
This repository has been archived by the owner on Nov 23, 2022. It is now read-only.

Commit

Permalink
fix(ipfs): encryption issues
Browse files Browse the repository at this point in the history
  • Loading branch information
0x77dev committed Jan 27, 2022
1 parent 658dddd commit 4fa31e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/ipfs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"@chainsafe/libp2p-noise": "^5.0.2",
"ipfs-core": "^0.13.0",
"libp2p-webrtc-star": "^0.25.0",
"tslib": "^2.3.1"
Expand Down
5 changes: 4 additions & 1 deletion packages/ipfs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { listen } from "./addresses"
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import WebRTCStar from 'libp2p-webrtc-star'
import { NOISE } from '@chainsafe/libp2p-noise'

export type Options = Omit<IPFS.Options, "libp2p">

Expand All @@ -24,7 +25,9 @@ export const create = (options?: Options, wrtc?: any): Promise<IPFS.IPFS> => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
modules: {
transport: [WebRTCStar]
transport: [WebRTCStar],
// @ts-expect-error: incompatible type
connEncryption: [NOISE]
},
config: {
peerDiscovery: {
Expand Down

0 comments on commit 4fa31e3

Please sign in to comment.