bitcoin_address_generatory.py


SUBMITTED BY: Guest

DATE: Sept. 13, 2014, 4:10 a.m.

FORMAT: Python

SIZE: 1.5 kB

HITS: 907

  1. _ =r"""A(W/2,*M(3*G
  2. *G*V(2*J%P),G,J,G)+((M((J-T
  3. )*V((G-S)%P),S,T,G)if(S@(G,J))if(
  4. W%2@(S,T)))if(W@(S,T);H=2**256;import&h
  5. ashlib&as&h,os,re,bi nascii&as&k;J$:int(
  6. k.b2a_hex(W),16);C$:C (W/ 58)+[W%58]if(W@
  7. [];X=h.new("rip em d160");Y$:h.sha25
  8. 6(W).digest();I$ d=32:I(W/256,d-1)+
  9. chr(W%256)if(d>0@""; U$:J(k.a2b_base
  10. 64(W));f=J(os.urando m(64)) %(H-U("AUVRIxl
  11. Qt1/EQC2hcy/JvsA="))+ 1;M$Q,R,G :((W*W-Q-G)%P,
  12. (W*(G+2*Q-W*W)-R)%P) ;P=H-2** 32-977;V$Q=P,L=
  13. 1,O=0:V(Q%W,W,O-Q/W* L,L)if(W@O%P;S,
  14. T=A(f,U("eb5mfvncu6 xVoGKVzocLBwKb/Nst
  15. zijZWfKBWxb4F5g="), U("SDra dyajxGVdpPv8DhEI
  16. qP0XtEimhVQZnEfQj/ sQ1Lg="), 0,0);F$:"1"+F(W
  17. [1:])if(W[:1 ]=="\0"@"" .join(map(B,C(
  18. J(W))));K$: F(W +Y(Y(W))[:4]);
  19. X.update(Y("\4"+ I(S)+I(T)));B$
  20. :re.sub("[0OIl _]| [^\\w]","","".jo
  21. in(map(chr,ra nge (123))))[W];print"Addre
  22. ss:",K("\0"+X.dig est())+"\nPrivkey:",K(
  23. "\x80"+I(f))""";exec(reduce(lambda W,X:
  24. W.replace(*X),zip(" \n&$@",["","",
  25. " ","=lambda W,",")else "])
  26. ,"A$G,J,S,T:"+_))

comments powered by Disqus