From 515a15e073b5faf1feae489230a5491a020c49b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reto=20Gm=C3=BCr?= Date: Wed, 4 Jan 2023 14:41:35 +0100 Subject: [PATCH] using _privateKey rather than undefined getter --- lib/nostr.ts | 2 +- mod.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nostr.ts b/lib/nostr.ts index 09067aa..c3145a2 100644 --- a/lib/nostr.ts +++ b/lib/nostr.ts @@ -311,7 +311,7 @@ class Nostr extends EventEmitter { } private async signId(id: string) { - return await (await secp.schnorr.sign(id, this.privateKey)); + return await (await secp.schnorr.sign(id, this._privateKey)); } private async sendPost(content: string, rootReference?: string, reference?: string, mention?: string) { diff --git a/mod.ts b/mod.ts index 845c0ec..0e527cc 100644 --- a/mod.ts +++ b/mod.ts @@ -27708,7 +27708,7 @@ class Nostr extends EventEmitter { return this.hexEncode(await sha256(buf)); } async signId(id) { - return await await schnorr.sign(id, this.privateKey); + return await await schnorr.sign(id, this._privateKey); } async sendPost(content, rootReference, reference, mention) { const event = {