Case
secp256k1Error.incorrectParameterSize
A function argument had the wrong number of bytes.
case incorrectParameterSize
Discussion
Thrown when a non-key parameter fails its fixed-length check — most commonly a 32-byte message digest, tweak scalar, nonce seed, or auxiliary randomness buffer. Distinct from secp256k1Error.incorrectKeySize so consumers can differentiate key-validation failures from argument-validation failures.