def sighash_all(self, index, script=None, anyone_can_pay=False):
        '''
        https://gist.github.com/davecgh/b00ec6e11f73620c3deddf160353961c
        https://github.com/decred/dcrd/blob/master/txscript/script.go
        '''
        copy_tx = self._sighash_prep(index, script)

        if anyone_can_pay:
            return self._sighash_anyone_can_pay(
                index=index,
                copy_tx=copy_tx,
                sighash_type=shared.SIGHASH_ALL)

        return self._sighash_final_hashing(
            index=index,
            copy_tx=copy_tx,
            sighash_type=shared.SIGHASH_ALL)
def sighash_all ( self , index , script = None , anyone_can_pay = False ) : copy_tx = self . _sighash_prep ( index , script ) if anyone_can_pay : return self . _sighash_anyone_can_pay ( index = index , copy_tx = copy_tx , sighash_type = shared . SIGHASH_ALL ) return self . _sighash_final_hashing ( index = index , copy_tx = copy_tx , sighash_type = shared . SIGHASH_ALL )
https://gist.github.com/davecgh/b00ec6e11f73620c3deddf160353961c
        https://github.com/decred/dcrd/blob/master/txscript/script.go