This commit is contained in:
Alex Gleason 2023-04-29 21:57:30 -05:00
parent 693c7cc7bf
commit 9734d0a961
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import { getEventHash, getPublicKey, getSignature } from '@/deps.ts';
import type { Event, EventTemplate, SignedEvent } from '@/event.ts';
/** Sign Nostr event using the app context. */
// deno-lint-ignore require-await
async function signEvent<K extends number = number>(event: EventTemplate<K>, c: AppContext): Promise<SignedEvent<K>> {
const seckey = c.get('seckey')!;