Title: Calculating K nonce Post by: krashfire on April 07, 2024, 09:07:18 PM Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce.
Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? Title: Re: Calculating K nonce Post by: COBRAS on April 07, 2024, 10:33:57 PM Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? Maybe this can help, this about nonce https://bitcointalk.org/index.php?topic=5491531.0 Title: Re: Calculating K nonce Post by: COBRAS on April 07, 2024, 10:36:40 PM Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? 6 weeks is very fast !!! have you result from real srz from btc transaction ? Title: Re: Calculating K nonce Post by: COBRAS on April 08, 2024, 02:32:25 AM Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? what i you have for 256 bit nonce ? ::) Title: Re: Calculating K nonce Post by: COBRAS on April 08, 2024, 03:32:38 AM Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? expand code,add formulas for r,s,z and after ask openai, in my situations this help. openai find bast and fastest solution regards Title: Re: Calculating K nonce Post by: krashfire on April 08, 2024, 04:24:19 AM OH
Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? Maybe this can help, this about nonce https://bitcointalk.org/index.php?topic=5491531.0 [/quote oh..ok thank you bro. Title: Re: Calculating K nonce Post by: krashfire on April 08, 2024, 04:26:00 AM i did. it went i
Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? expand code,add formulas for r,s,z and after ask openai, in my situations this help. openai find bast and fastest solution regards Title: Re: Calculating K nonce Post by: krashfire on April 08, 2024, 04:26:54 AM Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? 6 weeks is very fast !!! have you result from real srz from btc transaction ? Title: Re: Calculating K nonce Post by: COBRAS on April 08, 2024, 01:23:29 PM Hi everyone, im currently using this calculation written by ecdsa123 to get to K nonce. Code: # Function to check if a point's x-coordinate matches r i got the correct k nonce (256 bits) using his method after 6 weeks. i am just wondering is there a more effective way to solve for k nonce faster? is there a way for direct calculations from the given the values? 6 weeks is very fast !!! have you result from real srz from btc transaction ? Bro, check your pm please ) Title: Re: Calculating K nonce Post by: stilichovandal on April 08, 2024, 03:47:17 PM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this.
Title: Re: Calculating K nonce Post by: COBRAS on April 08, 2024, 04:19:47 PM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. muliticore vesion on cpu will be faster too, but 6 weeks , I thin is a big lucky.... unfortunately Title: Re: Calculating K nonce Post by: krashfire on April 09, 2024, 06:15:47 AM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. wow. Thank you. Please do. I still feel 6 weeks is too long though. I just got lucky.Title: Re: Calculating K nonce Post by: krashfire on April 09, 2024, 06:17:01 AM I currently ran the program on i9 processor and a Nvidia 3090 GPU.
Title: Re: Calculating K nonce Post by: krashfire on April 09, 2024, 07:40:06 AM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. in case you need the full code i had use in sagemath. Code:
Title: Re: Calculating K nonce Post by: COBRAS on April 09, 2024, 11:58:25 AM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. in case you need the full code i had use in sagemath. Code:
Thank you very mach for your code, mister ;) Title: Re: Calculating K nonce Post by: cassondracoffee on April 09, 2024, 02:46:47 PM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. in case you need the full code i had use in sagemath. Code:
Thank you very mach for your code, mister ;) @krashfire Please give me an example rsz if your code works correctly. sample rsz ??? r=0x s=0x z=0x And, if 2 signatures match how long, it takes to K nonce edit i got error, public_key1 (37231416379298332252575862495769965965364321245932635159006725536777825338696 : 9676366176353189190669004767334277632269117223198125569199055354600699161111 : 1) pub1_x= 0x52503c225437e35c61b9ee5ec88ea71600e7a710dbebac88b27c2d1a667ac548 public_key2 (84773528361026042599480815013664408603889872484555722313313932231857335756436 : 21504221066078790871098131651817310599861599747961732812418866800256292472755 : 1) pub2_x= 0xbb6c1de01f36618ae05f7c183c22dfa8797e779f39537752c27e2dc045b0e694 signature matches signature matches --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In [1], line 83 81 for i in range(Integer(1), n): 82 k = (r * i + z) * modinv(s, n) % n ---> 83 if check_k(k): 84 print(f"Found correct k: {k}") 85 private_key = (s * k - z) * modinv(r, n) % n Cell In [1], line 78, in check_k(k) 76 def check_k(k): 77 P = k * G ---> 78 return P.x() == r File /home/sc_serv/sage/src/sage/structure/element.pyx:489, in sage.structure.element.Element.__getattr__() 487 AttributeError: 'LeftZeroSemigroup_with_category.element_class' object has no attribute 'blah_blah'... 488 """ --> 489 return self.getattr_from_category(name) 490 491 cdef getattr_from_category(self, name) noexcept: File /home/sc_serv/sage/src/sage/structure/element.pyx:502, in sage.structure.element.Element.getattr_from_category() 500 else: 501 cls = P._abstract_element_class --> 502 return getattr_from_other_class(self, cls, name) 503 504 def __dir__(self): File /home/sc_serv/sage/src/sage/cpython/getattr.pyx:362, in sage.cpython.getattr.getattr_from_other_class() 360 dummy_error_message.cls = type(self) 361 dummy_error_message.name = name --> 362 raise AttributeError(dummy_error_message) 363 att Title: Re: Calculating K nonce Post by: COBRAS on April 09, 2024, 03:37:27 PM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. in case you need the full code i had use in sagemath. Code:
Thank you very mach for your code, mister ;) @krashfire Please give me an example rsz if your code works correctly. sample rsz ??? r=0x s=0x z=0x And, if 2 signatures match how long, it takes to K nonce edit i got error, public_key1 (37231416379298332252575862495769965965364321245932635159006725536777825338696 : 9676366176353189190669004767334277632269117223198125569199055354600699161111 : 1) pub1_x= 0x52503c225437e35c61b9ee5ec88ea71600e7a710dbebac88b27c2d1a667ac548 public_key2 (84773528361026042599480815013664408603889872484555722313313932231857335756436 : 21504221066078790871098131651817310599861599747961732812418866800256292472755 : 1) pub2_x= 0xbb6c1de01f36618ae05f7c183c22dfa8797e779f39537752c27e2dc045b0e694 signature matches signature matches --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In [1], line 83 81 for i in range(Integer(1), n): 82 k = (r * i + z) * modinv(s, n) % n ---> 83 if check_k(k): 84 print(f"Found correct k: {k}") 85 private_key = (s * k - z) * modinv(r, n) % n Cell In [1], line 78, in check_k(k) 76 def check_k(k): 77 P = k * G ---> 78 return P.x() == r File /home/sc_serv/sage/src/sage/structure/element.pyx:489, in sage.structure.element.Element.__getattr__() 487 AttributeError: 'LeftZeroSemigroup_with_category.element_class' object has no attribute 'blah_blah'... 488 """ --> 489 return self.getattr_from_category(name) 490 491 cdef getattr_from_category(self, name) noexcept: File /home/sc_serv/sage/src/sage/structure/element.pyx:502, in sage.structure.element.Element.getattr_from_category() 500 else: 501 cls = P._abstract_element_class --> 502 return getattr_from_other_class(self, cls, name) 503 504 def __dir__(self): File /home/sc_serv/sage/src/sage/cpython/getattr.pyx:362, in sage.cpython.getattr.getattr_from_other_class() 360 dummy_error_message.cls = type(self) 361 dummy_error_message.name = name --> 362 raise AttributeError(dummy_error_message) 363 att @krashfire find in 6 week, and this is looks like lucky. you can find rsz in previous topics/messages of @krashfire, for example Title: Re: Calculating K nonce Post by: stilichovandal on April 09, 2024, 09:14:09 PM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. wow. Thank you. Please do. I still feel 6 weeks is too long though. I just got lucky.Can you please explain the logic behind this? GPU can probably reduce it to few days. you can PM me if needed. Title: Re: Calculating K nonce Post by: krashfire on April 10, 2024, 01:30:26 PM Running this on GPU will be mush faster,. Let me see if i can write a CUDA program for this. you are suppose to fill in the rsz after each 0x in case you need the full code i had use in sagemath. Code:
Thank you very mach for your code, mister ;) @krashfire Please give me an example rsz if your code works correctly. sample rsz ??? r=0x s=0x z=0x And, if 2 signatures match how long, it takes to K nonce edit i got error, public_key1 (37231416379298332252575862495769965965364321245932635159006725536777825338696 : 9676366176353189190669004767334277632269117223198125569199055354600699161111 : 1) pub1_x= 0x52503c225437e35c61b9ee5ec88ea71600e7a710dbebac88b27c2d1a667ac548 public_key2 (84773528361026042599480815013664408603889872484555722313313932231857335756436 : 21504221066078790871098131651817310599861599747961732812418866800256292472755 : 1) pub2_x= 0xbb6c1de01f36618ae05f7c183c22dfa8797e779f39537752c27e2dc045b0e694 signature matches signature matches --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In [1], line 83 81 for i in range(Integer(1), n): 82 k = (r * i + z) * modinv(s, n) % n ---> 83 if check_k(k): 84 print(f"Found correct k: {k}") 85 private_key = (s * k - z) * modinv(r, n) % n Cell In [1], line 78, in check_k(k) 76 def check_k(k): 77 P = k * G ---> 78 return P.x() == r File /home/sc_serv/sage/src/sage/structure/element.pyx:489, in sage.structure.element.Element.__getattr__() 487 AttributeError: 'LeftZeroSemigroup_with_category.element_class' object has no attribute 'blah_blah'... 488 """ --> 489 return self.getattr_from_category(name) 490 491 cdef getattr_from_category(self, name) noexcept: File /home/sc_serv/sage/src/sage/structure/element.pyx:502, in sage.structure.element.Element.getattr_from_category() 500 else: 501 cls = P._abstract_element_class --> 502 return getattr_from_other_class(self, cls, name) 503 504 def __dir__(self): File /home/sc_serv/sage/src/sage/cpython/getattr.pyx:362, in sage.cpython.getattr.getattr_from_other_class() 360 dummy_error_message.cls = type(self) 361 dummy_error_message.name = name --> 362 raise AttributeError(dummy_error_message) 363 att |