Compare commits

..

No commits in common. "v0.1.0-develop.11" and "v0.1.0-develop.10" have entirely different histories.

4 changed files with 14 additions and 24 deletions

View File

@ -1,10 +1,3 @@
# [0.1.0-develop.11](https://git.lumeweb.com/LumeWeb/relay-plugin-s5/compare/v0.1.0-develop.10...v0.1.0-develop.11) (2023-09-02)
### Bug Fixes
* switch mkeyEd25519 to CID_HASH_TYPES ([8780042](https://git.lumeweb.com/LumeWeb/relay-plugin-s5/commit/87800422e3c419f81b0e623f1895648f01ab86bf))
# [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/relay-plugin-s5/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-09-01) # [0.1.0-develop.10](https://git.lumeweb.com/LumeWeb/relay-plugin-s5/compare/v0.1.0-develop.9...v0.1.0-develop.10) (2023-09-01)
# [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/relay-plugin-s5/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-09-01) # [0.1.0-develop.9](https://git.lumeweb.com/LumeWeb/relay-plugin-s5/compare/v0.1.0-develop.8...v0.1.0-develop.9) (2023-09-01)

20
npm-shrinkwrap.json generated
View File

@ -1,15 +1,15 @@
{ {
"name": "@lumeweb/relay-plugin-s5", "name": "@lumeweb/relay-plugin-s5",
"version": "0.1.0-develop.11", "version": "0.1.0-develop.10",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/relay-plugin-s5", "name": "@lumeweb/relay-plugin-s5",
"version": "0.1.0-develop.11", "version": "0.1.0-develop.10",
"dependencies": { "dependencies": {
"@lumeweb/interface-relay": "^0.0.2-develop.3", "@lumeweb/interface-relay": "^0.0.2-develop.3",
"@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18", "@lumeweb/libs5-transport-hyper": "^0.1.0-develop.17",
"@types/streamx": "^2.9.1", "@types/streamx": "^2.9.1",
"streamx": "^2.15.1" "streamx": "^2.15.1"
}, },
@ -1817,9 +1817,9 @@
} }
}, },
"node_modules/@lumeweb/libs5": { "node_modules/@lumeweb/libs5": {
"version": "0.1.0-develop.43", "version": "0.1.0-develop.25",
"resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.43.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.25.tgz",
"integrity": "sha512-kUGuT4kK9YVggqyMUj+pPY7okAFKxzACZTlA4BBBsgxAGIdr+iZLQwMfDlwzE4bdxndS52g1XM39Xv3K2xA/lQ==", "integrity": "sha512-kqvMrAU3fZLFwAqVwv0btu7dx0wBN/XkCGV9LivCoUz2DIT0T63W1Xv4LinpqDIZmbiXNmYt0CVQAhfe53b2UA==",
"dependencies": { "dependencies": {
"@noble/curves": "^1.1.0", "@noble/curves": "^1.1.0",
"@noble/hashes": "^1.3.1", "@noble/hashes": "^1.3.1",
@ -1831,11 +1831,11 @@
} }
}, },
"node_modules/@lumeweb/libs5-transport-hyper": { "node_modules/@lumeweb/libs5-transport-hyper": {
"version": "0.1.0-develop.18", "version": "0.1.0-develop.17",
"resolved": "https://registry.npmjs.org/@lumeweb/libs5-transport-hyper/-/libs5-transport-hyper-0.1.0-develop.18.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libs5-transport-hyper/-/libs5-transport-hyper-0.1.0-develop.17.tgz",
"integrity": "sha512-i9Ejrf7MBOW9kmxoYSA+qDGNM7AlW/3WgY+eXNCG1SrVK5eoQYV/Cm6XQisUaP1CP6pqRT++NmqNOBFBCKCvFA==", "integrity": "sha512-pUHyvbBEONccllEfeg56ozxgYp/Y9cDwfBMdIeWohGgT5cNFCzN5sBzlcaM5J07ALAf2nlJSRINKdvXZ3t4NMg==",
"dependencies": { "dependencies": {
"@lumeweb/libs5": "^0.1.0-develop.43", "@lumeweb/libs5": "^0.1.0-develop.25",
"streamx": "^2.15.1" "streamx": "^2.15.1"
} }
}, },

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/relay-plugin-s5", "name": "@lumeweb/relay-plugin-s5",
"version": "0.1.0-develop.11", "version": "0.1.0-develop.10",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",
@ -19,7 +19,7 @@
}, },
"dependencies": { "dependencies": {
"@lumeweb/interface-relay": "^0.0.2-develop.3", "@lumeweb/interface-relay": "^0.0.2-develop.3",
"@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18", "@lumeweb/libs5-transport-hyper": "^0.1.0-develop.17",
"@types/streamx": "^2.9.1", "@types/streamx": "^2.9.1",
"streamx": "^2.15.1" "streamx": "^2.15.1"
} }

View File

@ -4,9 +4,9 @@ import {
createKeyPair, createKeyPair,
createNode, createNode,
NodeId, NodeId,
CID_HASH_TYPES,
} from "@lumeweb/libs5"; } from "@lumeweb/libs5";
import HyperTransportPeer from "@lumeweb/libs5-transport-hyper"; import HyperTransportPeer from "@lumeweb/libs5-transport-hyper";
import { mkeyEd25519 } from "@lumeweb/libs5";
import { concatBytes } from "@noble/curves/abstract/utils"; import { concatBytes } from "@noble/curves/abstract/utils";
import { Level } from "level"; import { Level } from "level";
@ -49,10 +49,7 @@ const plugin = {
}); });
s5peer.id = new NodeId( s5peer.id = new NodeId(
concatBytes( concatBytes(Uint8Array.from([mkeyEd25519]), peer.remotePublicKey),
Uint8Array.from([CID_HASH_TYPES.ED25519]),
peer.remotePublicKey,
),
); );
await s5peer.init(); await s5peer.init();