fn sha256_preimage<Pk, S>(sat: S, h: sha256::Hash) -> Self
    where
        Pk: ToPublicKey,
        S: Satisfier<Pk>,
    {
        match sat.lookup_sha256(h) {
            Some(pre) => Witness::Stack(vec![pre.to_vec()]),
            None => Witness::Unavailable,
        }
    }
/// Turn a hash preimage into (part of) a satisfaction
Turn a hash preimage into (part of) a satisfaction
Turn a hash preimage into ( part of ) a satisfaction
fn sha256_preimage<Pk, S>(sat: S, h: sha256::Hash) -> Self
    where
        Pk: ToPublicKey,
        S: Satisfier<Pk>,
    {
        match sat.lookup_sha256(h) {
            Some(pre) => Witness::Stack(vec![pre.to_vec()]),
            None => Witness::Unavailable,
        }
    }
fn sha256_preimage < Pk , S > ( sat : S , h : sha256 :: Hash ) -> Self where Pk : ToPublicKey , S : Satisfier < Pk > , { match sat . lookup_sha256 ( h ) { Some ( pre ) => Witness :: Stack ( vec ! [ pre to_vec ( ) ] ) , None => Witness :: Unavailable , } }
Turn a hash preimage into (part of) a satisfaction
Turn a hash preimage into ( part of ) a satisfaction
sat
S
h
sha256::Hash
sat
S
h
sha256::Hash