From 78bee5c47ba87118cca89f46acbea479ba028df0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Sep 2023 04:10:02 -0400 Subject: [PATCH] fix: use privateKey not publicKeyRaw --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 0557a34..94810eb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,7 +27,7 @@ const plugin = { const db = new Level(dbPath); await db.open(); let config = { - keyPair: createKeyPair(api.identity.publicKeyRaw), + keyPair: createKeyPair(api.identity.privateKey), db, p2p: { peers: {