fix(createNode()): Updating RSA to Ed25519 keys

This commit is contained in:
Chris Troutner
2024-01-29 07:57:32 -08:00
parent 07071032bc
commit bcb70edf2b
4 changed files with 15 additions and 10 deletions
+5
View File
@@ -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 */
+8 -8
View File
@@ -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",
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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')
}