Switch away from nonboard for nostr login

This commit is contained in:
Jon Staab
2026-02-26 08:57:47 -08:00
parent 4e4d5907bf
commit 58d3036d31
7 changed files with 368 additions and 46 deletions
+14
View File
@@ -1,8 +1,22 @@
import type { IStaticMethods } from "preline"
declare global {
interface NostrNip07 {
getPublicKey(): Promise<string>
signEvent(event: unknown): Promise<unknown>
nip04?: {
encrypt(pubkey: string, plaintext: string): Promise<string>
decrypt(pubkey: string, ciphertext: string): Promise<string>
}
nip44?: {
encrypt(pubkey: string, plaintext: string): Promise<string>
decrypt(pubkey: string, ciphertext: string): Promise<string>
}
}
interface Window {
HSStaticMethods: IStaticMethods
nostr?: NostrNip07
}
}