Nit: scriptPubKeyIn can be const.