Question, where in LibBitcoin are the P2SH-specific logics trigged?
If I got it right, it should look something like this:
if (utxo's scriptPubKey is in format "OP_HASH160 <scriptHash> OP_EQUAL") {
evaluaste scriptSig;
var redeemScript = pull topmost stack element;
return evaluateBitcoin(redeemScript);
}