code: def _sighash_anyone_can_pay(self, index, copy_tx, sighash_type):
          '''
          int, byte-like, Tx, int -> bytes
          Applies SIGHASH_ANYONECANPAY procedure.
          Should be called by another SIGHASH procedure.
          Not on its own.
          https://en.bitcoin.it/wiki/OP_CHECKSIG#Procedure_for_Hashtype_SIGHASH_ANYONECANPAY
          '''
  
          # The txCopy input vector is resized to a length of one.
          copy_tx_ins = [copy_tx.tx_ins[index]]
          copy_tx = copy_tx.copy(tx_ins=copy_tx_ins)
  
          return self._sighash_final_hashing(
              copy_tx, sighash_type | shared.SIGHASH_ANYONECANPAYf _sighash_anyone_can_pay(self, index, copy_tx, sighash_type):
          '''
          int, byte-like, Tx, int -> bytes
          Applies SIGHASH_ANYONECANPAY procedure.
          Should be called by another SIGHASH procedure.
          Not on its own.
          https://en.bitcoin.it/wiki/OP_CHECKSIG#Procedure_for_Hashtype_SIGHASH_ANYONECANPAY
          '''
  
          # The txCopy input vector is resized to a length of one.
          copy_tx_ins = [copy_tx.tx_ins[index]]
          copy_tx = copy_tx.copy(tx_ins=copy_tx_ins)
  
          return self._sighash_final_hashing(
              copy_tx, sighash_type | shared.SIGHASH_ANYONECANPAY)
docs: int, byte-like, Tx, int -> bytes
          Applies SIGHASH_ANYONECANPAY procedure.
          Should be called by another SIGHASH procedure.
          Not on its own.
          https://en.bitcoin.it/wiki/OP_CHECKSIG#Procedure_for_Hashtype_SIGHASH_ANYONECANPAY