pub fn bitcoinsig_from_rawsig(rawsig: &[u8]) -> Result<BitcoinSig, Error> {
    let (flag, sig) = rawsig.split_last().unwrap();
    let flag = bitcoin::SigHashType::from_u32(*flag as u32);
    let sig = secp256k1::Signature::from_der(sig)?;
    Ok((sig, flag))
}
/// Helper function to create BitcoinSig from Rawsig
/// Useful for downstream when implementing Satisfier.
/// Returns underlying secp if the Signature is not of correct formart
Helper function to create BitcoinSig from Rawsig
Useful for downstream when implementing Satisfier.
Returns underlying secp if the Signature is not of correct formart
Helper function to create BitcoinSig from Rawsig Useful for downstream when implementing Satisfier . Returns underlying secp if the Signature is not of correct formart
pub fn bitcoinsig_from_rawsig(rawsig: &[u8]) -> Result<BitcoinSig, Error> {
    let (flag, sig) = rawsig.split_last().unwrap();
    let flag = bitcoin::SigHashType::from_u32(*flag as u32);
    let sig = secp256k1::Signature::from_der(sig)?;
    Ok((sig, flag))
}
pub fn bitcoinsig_from_rawsig ( rawsig : & [ u8 ] ) -> Result < BitcoinSig , Error > { let ( flag , sig ) = rawsig . split_last ( ) . unwrap ( ) ; let flag = bitcoin :: SigHashType :: from_u32 ( * flag as u32 ) ; let sig = secp256k1 :: Signature :: from_der ( sig ) ? ; Ok ( ( sig , flag ) ) }
Helper function to create BitcoinSig from Rawsig
Useful for downstream when implementing Satisfier.
Helper function to create BitcoinSig from Rawsig Useful for downstream when implementing Satisfier .
rawsig
&[u8]
rawsig
&[u8]