Consider the following scenario.
Alice, Carol and Bob create and fund a script with the following rules:
if now, alice pubkey, bob pubkey
if now+500 blocks, bob pubkey, carol pubkey
I'm trying to generate a multisignature, segwit compatible address as a P2WSH nested in BIP16 P2SH as described in BIP141. Basically, I want to construct a P2WSH-nested-in-P2SH address from n public ...