UNPKG

nostr-dm-magiclink-utils

Version:

A comprehensive Nostr utility library for magic link authentication via direct messages, supporting both ESM and CommonJS. Features NIP-01/04 compliant message encryption, multi-relay support, internationalization (i18n) with RTL support, and TypeScript-f

17 lines 664 B
import { SignedNostrEvent } from '../../types/nostr.js'; /** * Create a signed Nostr event * @param content Event content * @param kind Event kind * @param privateKey Private key to sign the event * @param tags Optional event tags * @returns Signed Nostr event */ export declare const createEvent: (content: string, kind: number, privateKey: string, tags?: string[][]) => Promise<SignedNostrEvent>; /** * Verify a Nostr event's signature and structure * @param event Event to verify * @returns True if event is valid, false otherwise */ export declare const verifyEvent: (event: SignedNostrEvent) => Promise<boolean>; //# sourceMappingURL=nip01.d.ts.map