hello please let me know whats wrong with this script for find Reuse R value hello friends here is the code to find reuse R values of bitcoin transaction but unfortunately it is not scanning more than 51 transaction secondly it can only use one address at a time and i want to use text file to check multiple addresses as well as i want to save the output in a text file please help me to sort out 


import json


import urllib2


import time


import sys


#for some reason blockchain.info api-chain is 59711 blocks short..


blockstart = 170399


blockstart += 59711


blockcount = urllib2.urlopen(&quot;https://blockchain.info/de/q/getblockcount&quot;).read()


print &quot;WELCOME TO R-scan v0.1.2!&quot;


print &quot;ADDRESS-R-SCAN: &quot;


addr = raw_input(&quot;type address:  &quot;)


urladdr = &quot;https://blockchain.info/de/rawaddr/&quot; + str(addr)


#control api-url


print urladdr


addrdata = json.load(urllib2.urlopen(urladdr))


print &quot;Data for pubkey: &quot; + str(addr)


print &quot;number of txs: &quot; + str(addrdata['n_tx'])


#tx-details:


y = -0


inputs = []


while y &lt; addrdata['n_tx']:


print &quot;#################################################################################&quot;


print &quot;TX nr :&quot; + str(y+1)


print &quot;hash: &quot; + str(addrdata['txs'][y]['hash'])


print &quot;number of inputs: &quot; + str(addrdata['txs'][y]['vin_sz'])


#only if


#if addrdata['txs'][y]['vin_sz'] &gt; 1:


zy = 0


while zy &lt; addrdata['txs'][y]['vin_sz']:


  print &quot;Input-ScriptNR &quot; + str(zy+1) + &quot; :&quot; + str(addrdata['txs'][y]['inputs'][zy]['script'])



  inputs.append(addrdata['txs'][y]['inputs'][zy]['script'])



  zy += 1



y += 1


print &quot;compare: &quot;


xi = 0


zi = 1


lenx = len(inputs)


alert = 0


#compare the sig values in each input script


while xi &lt; lenx-1:


x = 0


while x &lt; lenx-zi:


  if inputs[xi][10:74] == inputs[x+zi][10:74]:



      print &quot;In Input NR: &quot; + str(xi) + &quot;[global increment] &quot; + str(inputs[xi])



      print('\a')



                   print &quot;Resued R-Value: &quot;



      print inputs[x+zi][10:74]



                   alert += 1



  x += 1



zi += 1


xi += 1


#check duplicates


#alert when everything ok


if alert &lt; 1:


print &quot;Good pubKey. No problems.&quot;


sys.exit()
Use my code located here:

In your working directory (that you cd'd into) create an addr.txt containing your list of addresses separated by space or a newline.
Run it as python3 rscan.py 2&gt;out.txt. It'll print the progress and if anything bad is found it'll be in out.txt in your working directory.