pub unsafe fn is_slice_in_field_unchecked(slice: &[u8]) -> bool {
            use secp256k1::ffi::{self, CPtr};

            let secret = Self::as_ref_unchecked(slice);

            // Safety: FFI call
            let overflow = ffi::secp256k1_ec_seckey_verify(
                ffi::secp256k1_context_no_precomp,
                secret.as_c_ptr(),
            );

            overflow != 0
        }
/// Check if the provided slice represents a scalar that fits the field.
///
/// # Safety
///
/// This function extends the unsafety of
/// [`SecretKey::as_ref_unchecked`].
Check if the provided slice represents a scalar that fits the field.
Check if the provided slice represents a scalar that fits the field .
pub unsafe fn is_slice_in_field_unchecked(slice: &[u8]) -> bool {
            use secp256k1::ffi::{self, CPtr};
            let secret = Self::as_ref_unchecked(slice);
            // Safety: FFI call
            let overflow = ffi::secp256k1_ec_seckey_verify(
                ffi::secp256k1_context_no_precomp,
                secret.as_c_ptr(),
            );
            overflow != 0
        }
pub unsafe fn is_slice_in_field_unchecked ( slice : & [ u8 ] ) -> bool { use secp256k1 :: ffi :: { self , CPtr } ; let secret = Self :: as_ref_unchecked ( slice ) ; // Safety: FFI call let overflow = ffi :: secp256k1_ec_seckey_verify ( ffi :: secp256k1_context_no_precomp , secret . as_c_ptr ( ) , ) ; overflow != 0 }
Check if the provided slice represents a scalar that fits the field.
Check if the provided slice represents a scalar that fits the field .
slice
&[u8]
safety
This function extends the unsafety of
[`SecretKey::as_ref_unchecked`].
This function extends the unsafety of [ ` SecretKey :: as_ref_unchecked ` ] .