*validate pubkey length
This commit is contained in:
parent
55c87e0895
commit
ac84e39a6e
|
@ -69,6 +69,11 @@ async function handleDiscover(aq: ActiveQuery) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (aq.callerInput.pubkey.length !== 32) {
|
||||||
|
aq.reject("pubkey must be 32 bytes");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
"options" in aq.callerInput &&
|
"options" in aq.callerInput &&
|
||||||
typeof aq.callerInput.options !== "object"
|
typeof aq.callerInput.options !== "object"
|
||||||
|
|
Loading…
Reference in New Issue