diff --git a/config/env/common.js b/config/env/common.js index e67decb..cb42e65 100644 --- a/config/env/common.js +++ b/config/env/common.js @@ -1,6 +1,11 @@ /* This file is used to store unsecure, application-specific data common to all environments. + + Additional Environent Variables: + - CONNECT_PREF: should have a value of 'cr' (default), or 'direct'. This is + used by helia-coord to select a connection preference between peers. Servers + with an ip4 or ip6 address should use 'direct'. */ /* eslint no-unneeded-ternary:0 */ diff --git a/package-lock.json b/package-lock.json index 536a29b..fa8ae4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "datastore-fs": "9.1.6", "glob": "7.1.6", "helia": "2.1.0", - "helia-coord": "1.4.3", + "helia-coord": "1.5.1", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", "jwt-bch-lib": "1.3.0", @@ -7306,16 +7306,16 @@ } }, "node_modules/helia-coord": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.4.3.tgz", - "integrity": "sha512-ZSWASgaZhql8dFzdiL3ChPMkOxylNNP9C7ZivO2RNADWzvGM0iEIUU9yMj1WpTnVkGlNIKtkcBe36oJVz/qiEQ==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.5.1.tgz", + "integrity": "sha512-BSJcDnrtmrLjk8Weog+SzfUpJmIuNAqXC0M22VtiYifxpGxrimZ1c8fIPZHQDACsEaw9ndta6sB7pSUbmYTugQ==", "dependencies": { "@chris.troutner/retry-queue": "1.0.8", "bch-encrypt-lib": "2.1.1", "uuid": "9.0.0" }, "peerDependencies": { - "libp2p": ">0.46.14" + "libp2p": ">=1.2.1" } }, "node_modules/helia-coord/node_modules/uuid": { @@ -24295,9 +24295,9 @@ } }, "helia-coord": { - "version": "1.4.3", - "resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.4.3.tgz", - "integrity": "sha512-ZSWASgaZhql8dFzdiL3ChPMkOxylNNP9C7ZivO2RNADWzvGM0iEIUU9yMj1WpTnVkGlNIKtkcBe36oJVz/qiEQ==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/helia-coord/-/helia-coord-1.5.1.tgz", + "integrity": "sha512-BSJcDnrtmrLjk8Weog+SzfUpJmIuNAqXC0M22VtiYifxpGxrimZ1c8fIPZHQDACsEaw9ndta6sB7pSUbmYTugQ==", "requires": { "@chris.troutner/retry-queue": "1.0.8", "bch-encrypt-lib": "2.1.1", diff --git a/package.json b/package.json index b133f9f..88b1185 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "datastore-fs": "9.1.6", "glob": "7.1.6", "helia": "2.1.0", - "helia-coord": "1.4.3", + "helia-coord": "1.5.1", "jsonrpc-lite": "2.2.0", "jsonwebtoken": "8.5.1", "jwt-bch-lib": "1.3.0", diff --git a/src/adapters/ipfs/ipfs.js b/src/adapters/ipfs/ipfs.js index 69adc1e..bcdfac9 100644 --- a/src/adapters/ipfs/ipfs.js +++ b/src/adapters/ipfs/ipfs.js @@ -130,7 +130,7 @@ class IpfsAdapter { try { peerId = await chain.exportPeerId('myKey') } catch (err) { - await chain.createKey('myKey', 'RSA', 4096) + await chain.createKey('myKey', 'Ed25519', 4096) peerId = await chain.exportPeerId('myKey') }