docs: public Sha256Hash hashForSignature(int inputIndex, Script redeemScript,
                                                      SigHash type, boolean anyoneCanPay) {
          int sigHash = TransactionSignature.calcSigHashValue(type, anyoneCanPay);
          return hashForSignature(inputIndex, redeemScript.getProgram(), (byte) sigHash);
      }