Add NSpec and SoapboxSigner
This commit is contained in:
@ -1,12 +0,0 @@
|
||||
import type { Event, EventTemplate } from 'nostr-tools';
|
||||
|
||||
interface Nostr {
|
||||
getPublicKey(): Promise<string>;
|
||||
signEvent(event: EventTemplate): Promise<Event>;
|
||||
nip04?: {
|
||||
encrypt: (pubkey: string, plaintext: string) => Promise<string>;
|
||||
decrypt: (pubkey: string, ciphertext: string) => Promise<string>;
|
||||
};
|
||||
}
|
||||
|
||||
export default Nostr;
|
||||
4
src/types/window.d.ts
vendored
4
src/types/window.d.ts
vendored
@ -1,7 +1,7 @@
|
||||
import type Nostr from './nostr';
|
||||
import type { NostrSigner } from 'nspec';
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
nostr?: Nostr;
|
||||
nostr?: NostrSigner;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user