rx-nostr
Version:
A library based on RxJS, which allows Nostr applications to easily communicate with relays.
12 lines • 530 B
TypeScript
import * as Nostr from "nostr-typedef";
export interface EventSigner {
signEvent<K extends number>(params: Nostr.EventParameters<K>): Promise<Nostr.Event<K>>;
getPublicKey(): Promise<string>;
}
export interface EventSignerOptions {
/** If set, the set tags is appended to the end of the given event's tags on signing. */
tags?: Nostr.Tag.Any[];
}
export declare function nip07Signer(options?: EventSignerOptions): EventSigner;
export declare function noopSigner(): EventSigner;
//# sourceMappingURL=signer.d.ts.map