nostr-tools
Version:
Tools for making a Nostr client.
9 lines (8 loc) • 543 B
TypeScript
import { Event, EventTemplate, UnsignedEvent, VerifiedEvent } from './core.ts';
export declare function serializeEvent(evt: UnsignedEvent): string;
export declare function getEventHash(event: UnsignedEvent): string;
export declare const generateSecretKey: () => Uint8Array;
export declare const getPublicKey: (secretKey: Uint8Array) => string;
export declare const finalizeEvent: (t: EventTemplate, secretKey: Uint8Array) => VerifiedEvent;
export declare const verifyEvent: (event: Event) => event is VerifiedEvent;
export * from './core.ts';