code: function hashForRevokeSig(network, txid, address, value, lockTime, redeemScript) {
    const tx = btcUtil.buildIncompleteRevoke(network, txid, address, value, lockTime);
    const sigHash = tx.hashForSignature(
      0,
      new Buffer.from(redeemScript, 'hex'),
      bitcoin.Transaction.SIGHASH_ALL
    );
  
    return sigHash.toString('hex');
  }
docs: Get the hash to be signed for a revoke transaction
  @param {string} network - Network name (mainnet, testnet)
  @param {string} txid - The txid for the UTXO being spent
  @param {string} address - The address to receive funds
  @param {string|number} value - The amount of funds to be sent (in Satoshis)
  @param {number} lockTime - The lockTime of the P2SH address
  @param {string} redeemScript - The redeemScript of the P2SH address
  @returns {string} Hash to be signed