From 81e7e920ded8dcdde9feded5056a72d3af92da63 Mon Sep 17 00:00:00 2001 From: zappityzap Date: Sun, 5 Jan 2025 10:07:22 -0800 Subject: [PATCH] remove unused code --- server/notification-providers/nostr.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/server/notification-providers/nostr.js b/server/notification-providers/nostr.js index a6bb57117..d4cbfb630 100644 --- a/server/notification-providers/nostr.js +++ b/server/notification-providers/nostr.js @@ -5,7 +5,6 @@ const { kinds, nip04, nip19, - nip42, } = require("nostr-tools"); // polyfills for node versions @@ -85,17 +84,6 @@ class Nostr extends NotificationProvider { return `${successfulRelays}/${relays.length} relays connected.`; } - /** - * Sign the authentication event - * @param {Relay} relay Relay instance - * @param {string} privateKey Sender's private key - * @returns {Promise} Signed authentication event - */ - async signAuthEvent(relay, privateKey) { - const authEvent = nip42.makeAuthEvent(relay.url, relay.challenge); - return finalizeEvent(authEvent, privateKey); - } - /** * Get the private key for the sender * @param {string} sender Sender to retrieve key for