Case
secp256k1Error.underlyingCryptoError
A libsecp256k1 C function returned 0, indicating the cryptographic operation failed.
case underlyingCryptoError
Discussion
The upstream C API convention is that all boolean-returning functions return 1 on success and 0 on failure. This case wraps every such failure uniformly without attempting to recover the specific reason (the upstream API is deliberately opaque about failure modes to avoid leaking secret-dependent information through the error channel). Common triggers: invalid private key scalar (zero or ≥ curve order), invalid signature encoding, off-curve public-key points, invalid Taproot tweak, or a fatal internal-consistency check.