let mut witness = Witness::new();
// First push the multisig dummy, note that due to BIP147 (NULLDUMMY) it must be a zero-length element.
witness.push(vec![]);
- witness.push_ecdsa_signature(&BitcoinSignature { sig: *remote_sig, hash_ty: remote_sighash_type });
+ witness.push_ecdsa_signature(&BitcoinSignature { signature: *remote_sig, sighash_type: remote_sighash_type });
witness.push_ecdsa_signature(&BitcoinSignature::sighash_all(*local_sig));
if let Some(preimage) = preimage {
witness.push(preimage.0.to_vec());
Ok(witness_program) => witness_program,
Err(_) => return None,
};
- Some(Address::from_witness_program(witness_program, network.into()))
+ Some(Address::from_witness_program(witness_program, network))
};
fallbacks.iter().filter_map(to_valid_address).collect()