pub unsafe fn secp256k1_ecdsa_signature_parse_compact(
        cx: *const Context,
        sig: *mut Signature,
        input64: *const c_uchar,
    ) -> c_int {
        assert!(
            !cx.is_null()
                && (*cx).0 as u32
                    & !(SECP256K1_START_NONE | SECP256K1_START_VERIFY | SECP256K1_START_SIGN)
                    == 0
        );
        if secp256k1_ec_seckey_verify(cx, input64.offset(32)) != 1 {
            return 0;
        } // sig should be msg32||sk
        ptr::copy(input64, (*sig).0[..].as_mut_ptr(), 64);
        1
    }
/// Copies input64 to sig, checking the pubkey part is valid
Copies input64 to sig, checking the pubkey part is valid
Copies input64 to sig checking the pubkey part is valid
pub unsafe fn secp256k1_ecdsa_signature_parse_compact(
        cx: *const Context,
        sig: *mut Signature,
        input64: *const c_uchar,
    ) -> c_int {
        assert!(
            !cx.is_null()
                && (*cx).0 as u32
                    & !(SECP256K1_START_NONE | SECP256K1_START_VERIFY | SECP256K1_START_SIGN)
                    == 0
        );
        if secp256k1_ec_seckey_verify(cx, input64.offset(32)) != 1 {
            return 0;
        } // sig should be msg32||sk
        ptr::copy(input64, (*sig).0[..].as_mut_ptr(), 64);
        1
    }
pub unsafe fn secp256k1_ecdsa_signature_parse_compact ( cx : * const Context , sig : * mut Signature , input64 : * const c_uchar , ) -> c_int { assert ! ( cx is_null ( ) ( cx ) 0 as u32 ( SECP256K1_START_NONE SECP256K1_START_VERIFY SECP256K1_START_SIGN ) 0 ) ; if secp256k1_ec_seckey_verify ( cx , input64 . offset ( 32 ) ) != 1 { return 0 ; } // sig should be msg32||sk ptr :: copy ( input64 , ( * sig ) . 0 [ .. ] . as_mut_ptr ( ) , 64 ) ; 1 }
Copies input64 to sig, checking the pubkey part is valid
Copies input64 to sig checking the pubkey part is valid
cx
*const Context
sig
*mut Signature
input64
*const c_uchar
cx
*const Context
sig
*mut Signature
input64
*const c_uchar