Switch away from nonboard for nostr login
This commit is contained in:
Vendored
+14
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user