Compare commits
4 Commits
v0.1.0-dev
...
v0.1.0-dev
Author | SHA1 | Date |
---|---|---|
semantic-release-bot | 8a937fc2b9 | |
Derrick Hammer | 87800422e3 | |
Derrick Hammer | bb40e51eee | |
Derrick Hammer | 5546934ca2 |
|
@ -1,3 +1,10 @@
|
||||||
|
# [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)
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/relay-plugin-s5",
|
"name": "@lumeweb/relay-plugin-s5",
|
||||||
"version": "0.1.0-develop.10",
|
"version": "0.1.0-develop.11",
|
||||||
"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.10",
|
"version": "0.1.0-develop.11",
|
||||||
"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.17",
|
"@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18",
|
||||||
"@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.25",
|
"version": "0.1.0-develop.43",
|
||||||
"resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.25.tgz",
|
"resolved": "https://registry.npmjs.org/@lumeweb/libs5/-/libs5-0.1.0-develop.43.tgz",
|
||||||
"integrity": "sha512-kqvMrAU3fZLFwAqVwv0btu7dx0wBN/XkCGV9LivCoUz2DIT0T63W1Xv4LinpqDIZmbiXNmYt0CVQAhfe53b2UA==",
|
"integrity": "sha512-kUGuT4kK9YVggqyMUj+pPY7okAFKxzACZTlA4BBBsgxAGIdr+iZLQwMfDlwzE4bdxndS52g1XM39Xv3K2xA/lQ==",
|
||||||
"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.17",
|
"version": "0.1.0-develop.18",
|
||||||
"resolved": "https://registry.npmjs.org/@lumeweb/libs5-transport-hyper/-/libs5-transport-hyper-0.1.0-develop.17.tgz",
|
"resolved": "https://registry.npmjs.org/@lumeweb/libs5-transport-hyper/-/libs5-transport-hyper-0.1.0-develop.18.tgz",
|
||||||
"integrity": "sha512-pUHyvbBEONccllEfeg56ozxgYp/Y9cDwfBMdIeWohGgT5cNFCzN5sBzlcaM5J07ALAf2nlJSRINKdvXZ3t4NMg==",
|
"integrity": "sha512-i9Ejrf7MBOW9kmxoYSA+qDGNM7AlW/3WgY+eXNCG1SrVK5eoQYV/Cm6XQisUaP1CP6pqRT++NmqNOBFBCKCvFA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lumeweb/libs5": "^0.1.0-develop.25",
|
"@lumeweb/libs5": "^0.1.0-develop.43",
|
||||||
"streamx": "^2.15.1"
|
"streamx": "^2.15.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lumeweb/relay-plugin-s5",
|
"name": "@lumeweb/relay-plugin-s5",
|
||||||
"version": "0.1.0-develop.10",
|
"version": "0.1.0-develop.11",
|
||||||
"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.17",
|
"@lumeweb/libs5-transport-hyper": "^0.1.0-develop.18",
|
||||||
"@types/streamx": "^2.9.1",
|
"@types/streamx": "^2.9.1",
|
||||||
"streamx": "^2.15.1"
|
"streamx": "^2.15.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,7 +49,10 @@ const plugin = {
|
||||||
});
|
});
|
||||||
|
|
||||||
s5peer.id = new NodeId(
|
s5peer.id = new NodeId(
|
||||||
concatBytes(Uint8Array.from([mkeyEd25519]), peer.remotePublicKey),
|
concatBytes(
|
||||||
|
Uint8Array.from([CID_HASH_TYPES.ED25519]),
|
||||||
|
peer.remotePublicKey,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
await s5peer.init();
|
await s5peer.init();
|
||||||
|
|
Loading…
Reference in New Issue