The Vonage account signature secret (the HMAC key; resolved upstream — never inlined).
The sig param Vonage sent (the signature to check).
The webhook params (the sig param is ignored if present).
true when the signature is valid; false otherwise (including a missing sig).
Verifies a Vonage signed-request webhook per Vonage's documented scheme:
sigparam itself), sort by key.&key=valuepairs (&prefix on each), prepended with the signature secret rule, then HMAC-SHA256 with the account signature secret as the key; hex-encode the digest (uppercased).sig.A missing/empty
sigrejects. Comparison is constant-time (timingSafeEqual) to avoid leaking the expected signature via timing. Pure + exported so it unit-tests with a known vector and the MJAPI router calls it on every public Vonage endpoint (these can't carry an MJ JWT).