Bitcoin Forum
November 06, 2024, 02:38:21 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Finder of part of privkey  (Read 113 times)
COBRAS (OP)
Member
**
Offline Offline

Activity: 1015
Merit: 23


View Profile
December 13, 2022, 05:37:49 PM
 #1

1. privkeys=pubkeys.All math operation is equal.

Code:
from random import randint

N =    115792089237316195423570985008687907852837564279074904382605163141518161494337

def inv(v): return pow(v, N-2, N)
def divnum(a, b): return ( (a * inv(b) ) % N )
#63673
i=0xe15079f913c10000000000 # cюдa 0 дoкидывaю

#0xe15079f913c1bd44d773dde5b2e8450xe15079f913c1bc0000000000000000188
#tt 0xe15079f913c1bd0000000000000000 i 0xe15079f913c1bd00000000 0x44d773dde5b2e845
#0xe15079f913c1bd44d773dde5b2e8450xe15079f913c1bd0000000000000000189

#0x1115310000000000000000000000000#2**119+2**119+2**118+2**116+2**115+2**112+2**111+2**108+2**107+2**105+2**104+2**103+2**102#int(1606938044258990275541962092341162602522202993782792835301376/2**91)#2**119+2**114+2**100+2**99+2**98#2**10#67108864*2**88#+2**51+2**50+2**49+2**47+2**46+2**44+2**42+2**39+2**38+2**36+2**35+2**33+2**31+2**30+2**29+2**27+2**26+2**24+2**23+2**22+2**21+2**19#2**19#33500+109000#2**29+2**28+2**23+2**21+2**20+2**19+2**17#2**59+2**57+2**56+2**54+2**52+2**46+2**43+2**42+2**41+2**40+2**36+2**35+2**34+2**33+2**32+2**31+2**30+2**29+2**28+2**58#2**58#**29+2**26+2**25+2**24+2**23+2**22+2**21+2**20+2**19#5000000000000000#2**29+2**28+2**27+2**26+2**23#2**59+2**58+2**57+2**55+2**54+2**52+2**39+2**36+2**36+2**35+2**34+2**33+2**32+2**31+2**30+2**29+2**28+2**27+2**26+2**25#2#2**57# randint(1,50000000)#2**27+2**23#**29 +5900000 + 6629000 i = i -2**29
ini =0xe15079f913c1bd44d773dde5b2e845
z =2**15
Q=2**8

# z = 2**2 tt 67108866 12529482 134217732
#tt 67108865 12529484 134217730
#tt 67108864 12529486 134217728

#134217728 / 2**2 * 2 =67108864
#67108864

tt = 0
#tt 166898 3918 683618126
#tt 166897 8014 683618126
ttt=0
w=0
# z= 2^17 # tt 5215    77646 683540480
while i <= 2**224:
    #ttt = tt
    #i= 2**40+i
   
#tt 2293664256 670972708 900408754349035042
#tt 951718839 670972709 900408754349035042   

 
    #tt = (divnum(ini-i,z)-(divnum((1),z) ))% N
    #tt = (ttt -  (((ini)-(i**2))))%N#-divnum(1,z)%N# Peзyльтaт #tt 951718839 670972709 900408754349035042
   
 #   4349035042
#tt 900408444038762001 557055 900408754349035042
#tt 900408406457863696 589823 900408754349035042


   
    #tt =((divnum(i+1,z)+i*i%N)+divnum(1,z)*z)%N # = Peзyльтaт: tt 1523908665 948898705 900408754349035042
    #tt = i*i + 152+i %N
    #   из 0x10000000000 oдин 0 yбиpaю
    tt =((ini-0x100000000*i)-ini)*-1#
   
    #tt=(((divnum(ini,z)-i%N)-((divnum(ini - 2**15-i*0xffff,z))-i%N)%N))#-(divnum(i,z)+(0))))%N#2**109+2**108+2**103+2**99+2**98+2**95+2**94+2**91+2**90+2**87+2**86)))) %N
    #print(hex(int(0xc233332273e04535c0226737f3fce1/2**11)))
   
   
   # t 212302768 i 176214 ini-tt 993643961472 993656264240
#tt 1025040 i 176215 in
   
    if tt<=ini and  tt>0:#=2**120:
        print("tt",hex(tt),"i",hex(i), hex(ini-tt))
        print(hex(ini))
        print(hex(tt))
        print(w)
   
   
   
    w = w + 1
    #из 0x10000000000 oдин 0 yбиpaю
    i = i + 0x100000000
   
   
   
   



Anjoy

[
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!