-
finalizeEventtreats kind 0 as falsy —src/crypto.ts:282usesevent.kind || 1which coerces kind0(SET_METADATA) to1(TEXT_NOTE). Fix: useevent.kind ?? 1orevent.kind !== undefined ? event.kind : 1. Same issue on line 279 withcreated_at(event.created_at || ...would treat timestamp0as falsy, though unlikely in practice). Found while building@nse-dev/serverwhich signs kind 0 profile events.