Bitcoin Forum
June 16, 2025, 10:55:44 AM *
News: Pizza day contest voting
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Looking for help. What parameters will be for 120 bit privkey ?  (Read 101 times)
COBRAS (OP)
Member
**
Offline Offline

Activity: 1123
Merit: 25


View Profile
October 28, 2022, 05:08:58 AM
 #1

Hi


what parameters of delta ana gamma use for 120 bit privkey ?

In code privkey = x = 0x5f87 +1


Big thank you.





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 )

i=0
#input2^^120 = 0x9fd24b3abe244d6c443df56fa494dc

input = 0x5f87 +1

delta = 12

gamma = 2

d1= 80

while i < 2**61:
    d= (divnum(input,delta))
    s = divnum(i,gamma) %N
    result = divnum(d,s)
    
    if result <input and result >=0:
        print("result",hex(result),"i",hex(i),"input",hex(input))
        
    i = i +1


[
NotATether
Legendary
*
Offline Offline

Activity: 2002
Merit: 8605


Search? Try talksearch.io


View Profile WWW
October 28, 2022, 08:43:24 AM
 #2

They could be anything as long as we don't know what algorithm you are using. If you give us a link to the paper of Wikipedia page you're basing this calculation on, we'll be able to better help you.

██
██
██
██
██
██
██
██
██
██
██
██
██
... LIVECASINO.io    Play Live Games with up to 20% cashback!...██
██
██
██
██
██
██
██
██
██
██
██
██
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!