pub(crate) fn to_secp(&mut self) -> SecpRecoverableSignature {
            let v = (self.as_mut()[32] >> 7) as i32;

            self.truncate_recovery_id();

            let v = RecoveryId::from_i32(v)
                .unwrap_or_else(|_| RecoveryId::from_i32(0).expect("0 is infallible recovery ID"));

            let signature = SecpRecoverableSignature::from_compact(self.as_ref(), v)
                .unwrap_or_else(|_| {
                    SecpRecoverableSignature::from_compact(&[0u8; 64], v)
                        .expect("Zeroed signature is infallible")
                });

            signature
        }
// Internal API - this isn't meant to be made public because some assumptions and pre-checks
// are performed prior to this call
Internal API - this isn't meant to be made public because some assumptions and pre-checks
are performed prior to this call
Internal API - this isn ' t meant to be made public because some assumptions and pre - checks are performed prior to this call
pub(crate) fn to_secp(&mut self) -> SecpRecoverableSignature {
            let v = (self.as_mut()[32] >> 7) as i32;
            self.truncate_recovery_id();
            let v = RecoveryId::from_i32(v)
                .unwrap_or_else(|_| RecoveryId::from_i32(0).expect("0 is infallible recovery ID"));
            let signature = SecpRecoverableSignature::from_compact(self.as_ref(), v)
                .unwrap_or_else(|_| {
                    SecpRecoverableSignature::from_compact(&[0u8; 64], v)
                        .expect("Zeroed signature is infallible")
                });
            signature
        }
pub ( crate ) fn to_secp ( & mut self ) -> SecpRecoverableSignature { let v = ( self . as_mut ( ) [ 32 ] >> 7 ) as i32 ; self . truncate_recovery_id ( ) ; let v = RecoveryId :: from_i32 ( v ) . unwrap_or_else ( | _ | RecoveryId :: from_i32 ( 0 ) . expect ( " " ) ) ; let signature = SecpRecoverableSignature :: from_compact ( self . as_ref ( ) , v ) . unwrap_or_else ( | _ | { SecpRecoverableSignature :: from_compact ( & [ 0u8 ; 64 ] , v ) . expect ( " " ) } ) ; signature }
Internal API - this isn't meant to be made public because some assumptions and pre-checks
are performed prior to this call
Internal API - this isn ' t meant to be made public because some assumptions and pre - checks are performed prior to this call
&mut self