#[no_mangle]
pub unsafe extern "C" fn rustsecp256k1_v0_8_1_default_error_callback_fn(
    message: *const c_char,
    _data: *mut c_void
)
Expand description

This function is an override for the C function, this is the an edited version of the original description:

A callback function to be called when an internal consistency check fails. This will cause a panic.

This can only trigger in case of a hardware failure, miscompilation, memory corruption, serious bug in the library, or other error would can otherwise result in undefined behaviour. It will not trigger due to mere incorrect usage of the API (see secp256k1_default_illegal_callback_fn for that). After this callback returns, anything may happen, including crashing.

See also secp256k1_default_illegal_callback_fn.

Safety

message string should be a null terminated C string and, up to the first null byte, must be valid UTF8.

For exact safety constraints see std::slice::from_raw_parts and std::str::from_utf8_unchecked.