Compare commits

..

5 Commits

Author SHA1 Message Date
semantic-release-bot 70069471d0 chore(release): 0.1.0-develop.17 [skip ci]
# [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-09-03)

### Bug Fixes

* need to slice out the key type byte ([7d0d1b9](7d0d1b9b2b))
2023-09-03 03:05:55 +00:00
Derrick Hammer 23b10c1c1d
Merge remote-tracking branch 'origin/develop' into develop 2023-09-02 23:05:02 -04:00
Derrick Hammer 7d0d1b9b2b
fix: need to slice out the key type byte 2023-09-02 23:04:52 -04:00
Derrick Hammer 3b70ba00af
refactor: switch to decodeCid 2023-09-02 23:04:47 -04:00
Derrick Hammer 5895485467
dep: update libweb 2023-09-02 23:03:18 -04:00
4 changed files with 19 additions and 12 deletions

View File

@ -1,3 +1,10 @@
# [0.1.0-develop.17](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.16...v0.1.0-develop.17) (2023-09-03)
### Bug Fixes
* need to slice out the key type byte ([7d0d1b9](https://git.lumeweb.com/LumeWeb/publish-kernel-module/commit/7d0d1b9b2bec62d369a255cb3a7545febfb4ad56))
# [0.1.0-develop.16](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.15...v0.1.0-develop.16) (2023-09-02) # [0.1.0-develop.16](https://git.lumeweb.com/LumeWeb/publish-kernel-module/compare/v0.1.0-develop.15...v0.1.0-develop.16) (2023-09-02)

12
npm-shrinkwrap.json generated
View File

@ -1,14 +1,14 @@
{ {
"name": "@lumeweb/publish-kernel-module", "name": "@lumeweb/publish-kernel-module",
"version": "0.1.0-develop.16", "version": "0.1.0-develop.17",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lumeweb/publish-kernel-module", "name": "@lumeweb/publish-kernel-module",
"version": "0.1.0-develop.16", "version": "0.1.0-develop.17",
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.36", "@lumeweb/libweb": "0.2.0-develop.37",
"@scure/bip39": "^1.2.1", "@scure/bip39": "^1.2.1",
"chalk": "^5.2.0", "chalk": "^5.2.0",
"ed25519-keygen": "^0.4.8", "ed25519-keygen": "^0.4.8",
@ -1952,9 +1952,9 @@
} }
}, },
"node_modules/@lumeweb/libweb": { "node_modules/@lumeweb/libweb": {
"version": "0.2.0-develop.36", "version": "0.2.0-develop.37",
"resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.36.tgz", "resolved": "https://registry.npmjs.org/@lumeweb/libweb/-/libweb-0.2.0-develop.37.tgz",
"integrity": "sha512-17jj7UnKDwYMBmpquVOJmLVuKlRGOUfJDD+iWYOqle8gEekA5EwBIskB3NqFL99iw8dDax/MyqQUr5kSi4GyIQ==", "integrity": "sha512-GVAQH6wo1wKGiJ0HTtbgK2kuo+Tzyvv1S9aFgwyA2BGr3HQfAnc8ssoteJrEElWzRMielM9LkZQjFEKJpI6swQ==",
"dependencies": { "dependencies": {
"@lumeweb/community-portals": "^0.1.0-develop.6", "@lumeweb/community-portals": "^0.1.0-develop.6",
"@lumeweb/libportal": "0.2.0-develop.20", "@lumeweb/libportal": "0.2.0-develop.20",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lumeweb/publish-kernel-module", "name": "@lumeweb/publish-kernel-module",
"version": "0.1.0-develop.16", "version": "0.1.0-develop.17",
"type": "module", "type": "module",
"repository": { "repository": {
"type": "git", "type": "git",
@ -24,7 +24,7 @@
"lib/**" "lib/**"
], ],
"dependencies": { "dependencies": {
"@lumeweb/libweb": "0.2.0-develop.36", "@lumeweb/libweb": "0.2.0-develop.37",
"@scure/bip39": "^1.2.1", "@scure/bip39": "^1.2.1",
"chalk": "^5.2.0", "chalk": "^5.2.0",
"ed25519-keygen": "^0.4.8", "ed25519-keygen": "^0.4.8",

View File

@ -35,7 +35,7 @@ import { MemoryLevel } from "memory-level";
import { base58btc } from "multiformats/bases/base58"; import { base58btc } from "multiformats/bases/base58";
import KeyPairEd25519 from "@lumeweb/libs5/lib/ed25519.js"; import KeyPairEd25519 from "@lumeweb/libs5/lib/ed25519.js";
import defer from "p-defer"; import defer from "p-defer";
import { encodeCid } from "@lumeweb/libportal"; import { decodeCid, encodeCid } from "@lumeweb/libportal";
const BIP44_PATH = "m/44'/1627'/0'/0'/0'"; const BIP44_PATH = "m/44'/1627'/0'/0'/0'";
@ -163,7 +163,7 @@ node.services.p2p.once("peerConnected", peerDefer.resolve);
await peerDefer.promise; await peerDefer.promise;
{ {
const cidBytes = base58btc.decode(cid); const cidBytes = decodeCid(cid);
const key = hdKey as HDKey; const key = hdKey as HDKey;
let revision = 0; let revision = 0;
@ -183,7 +183,7 @@ await peerDefer.promise;
CID_TYPES.RESOLVER, CID_TYPES.RESOLVER,
CID_HASH_TYPES.BLAKE3, CID_HASH_TYPES.BLAKE3,
]), ]),
cidBytes, cidBytes.hash,
); );
if (!equalBytes(ret?.data ?? new Uint8Array(), newEntry)) { if (!equalBytes(ret?.data ?? new Uint8Array(), newEntry)) {
@ -202,7 +202,7 @@ await peerDefer.promise;
util.format( util.format(
"%s: %s", "%s: %s",
chalk.green("Resolver entry"), chalk.green("Resolver entry"),
encodeCid(sre.pk, 0, CID_TYPES.RESOLVER, CID_HASH_TYPES.ED25519), encodeCid(sre.pk.slice(1), 0, CID_TYPES.RESOLVER, CID_HASH_TYPES.ED25519),
), ),
); );
await node.stop(); await node.stop();