remove unused code

This commit is contained in:
zappityzap 2025-01-05 10:07:22 -08:00
parent e421c4eda5
commit 81e7e920de

View file

@ -5,7 +5,6 @@ const {
kinds, kinds,
nip04, nip04,
nip19, nip19,
nip42,
} = require("nostr-tools"); } = require("nostr-tools");
// polyfills for node versions // polyfills for node versions
@ -85,17 +84,6 @@ class Nostr extends NotificationProvider {
return `${successfulRelays}/${relays.length} relays connected.`; return `${successfulRelays}/${relays.length} relays connected.`;
} }
/**
* Sign the authentication event
* @param {Relay} relay Relay instance
* @param {string} privateKey Sender's private key
* @returns {Promise<VerifiedEvent>} 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 * Get the private key for the sender
* @param {string} sender Sender to retrieve key for * @param {string} sender Sender to retrieve key for