From 7d0d1b9b2bec62d369a255cb3a7545febfb4ad56 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 2 Sep 2023 23:04:52 -0400 Subject: [PATCH] fix: need to slice out the key type byte --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 595b837..6a0c0fc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -202,7 +202,7 @@ await peerDefer.promise; util.format( "%s: %s", 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();