UNPKG

node-red-contrib-nostr

Version:

Node-RED nodes for seamless Nostr protocol integration. Features robust WebSocket handling, event filtering, and NPUB-based routing. Built with TypeScript for type safety and extensive testing. Perfect for Nostr automation flows.

9 lines (8 loc) 536 B
import { NostrEvent } from '../nodes/shared/types'; export declare class NIP04 { static encrypt(privateKey: string, publicKey: string, text: string): Promise<string>; static decrypt(privateKey: string, publicKey: string, encryptedText: string): Promise<string>; static createEncryptedEvent(recipientPubkey: string, content: string, privateKey: string): Promise<NostrEvent>; static decryptEvent(event: NostrEvent, privateKey: string): Promise<string>; static getDMFilter(pubkey: string, otherPubkey?: string): any; }