/**
  * @param RedeemScript $redeemScript
  * @param TransactionSignature[] $signatures
  * @return Script
  */
 public function multisigP2sh(RedeemScript $redeemScript, $signatures)
 {
     $script = ScriptFactory::create()->op('OP_0');
     foreach ($signatures as $signature) {
         $script->push($signature->getBuffer());
     }
     $script->push($redeemScript->getBuffer());
     return $script;
 }
 /**
  * @return int
  */
 public function getRequiredSigCount()
 {
     return $this->execForInputTypes(function () {
         return 1;
     }, function () {
         return 1;
     }, function () {
         return $this->redeemScript->getRequiredSigCount();
     });
 }