From 0d5aa24b741f3fafc6cfcbeb6d01d534bea169ef Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 26 Nov 2022 14:36:44 -0500 Subject: [PATCH] *privateKey needs to be secretKey --- src/modules/rpc/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/rpc/server.ts b/src/modules/rpc/server.ts index b534bf9..7327ff5 100644 --- a/src/modules/rpc/server.ts +++ b/src/modules/rpc/server.ts @@ -133,7 +133,7 @@ export class RPCServer extends EventEmitter { } return crypto - .sign(Buffer.from(raw, this._cache.swarm.keyPair.privateKey)) + .sign(Buffer.from(raw, this._cache.swarm.keyPair.secretKey)) .toString("hex"); }