feat: nip5 manager

This commit is contained in:
2023-03-30 19:21:33 +01:00
parent 625d3c3d5b
commit 3212155a43
8 changed files with 187 additions and 10 deletions

View File

@ -370,10 +370,11 @@ export default function useEventPublisher() {
publicKey: pubKey,
};
},
generic: async (content: string, kind: EventKind) => {
generic: async (content: string, kind: EventKind, tags?: Array<Array<string>>) => {
if (pubKey) {
const ev = EventExt.forPubKey(pubKey, kind);
ev.content = content;
ev.tags = tags ?? [];
return await signEvent(ev);
}
},