diff --git a/src/index.ts b/src/index.ts index 22a626c..e67a192 100644 --- a/src/index.ts +++ b/src/index.ts @@ -69,6 +69,11 @@ async function handleDiscover(aq: ActiveQuery) { return; } + if (aq.callerInput.pubkey.length !== 32) { + aq.reject("pubkey must be 32 bytes"); + return; + } + if ( "options" in aq.callerInput && typeof aq.callerInput.options !== "object"