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: {