mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-01-18 10:28:05 +00:00
remove unused code
This commit is contained in:
parent
e421c4eda5
commit
81e7e920de
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue