fn signature<Pk: ToPublicKey, S: Satisfier<Pk>>(sat: S, pk: &Pk) -> Self {
        match sat.lookup_sig(pk) {
            Some((sig, hashtype)) => {
                let mut ret = sig.serialize_der().to_vec();
                ret.push(hashtype.as_u32() as u8);
                Witness::Stack(vec![ret])
            }
            None => Witness::Unavailable,
        }
    }
/// Turn a signature into (part of) a satisfaction
Turn a signature into (part of) a satisfaction
Turn a signature into ( part of ) a satisfaction
fn signature<Pk: ToPublicKey, S: Satisfier<Pk>>(sat: S, pk: &Pk) -> Self {
        match sat.lookup_sig(pk) {
            Some((sig, hashtype)) => {
                let mut ret = sig.serialize_der().to_vec();
                ret.push(hashtype.as_u32() as u8);
                Witness::Stack(vec![ret])
            }
            None => Witness::Unavailable,
        }
    }
fn signature < Pk : ToPublicKey , S : Satisfier < Pk > > ( sat : S , pk : & Pk ) -> Self { match sat . lookup_sig ( pk ) { Some ( ( sig , hashtype ) ) => { let mut ret = sig . serialize_der ( ) . to_vec ( ) ; ret . push ( hashtype . as_u32 ( ) as u8 ) ; Witness :: Stack ( vec ! [ ret ] ) } None => Witness :: Unavailable , } }
Turn a signature into (part of) a satisfaction
Turn a signature into ( part of ) a satisfaction
sat
S
pk
&Pk
sat
S
pk
&Pk