Bitcoin Forum
November 13, 2024, 10:44:22 PM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: SECP256k1. Why this happen?  (Read 205 times)
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 11:34:15 AM
 #1

E7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * db09b0615ad40a0 =

fc07a1825367bbe

but then I add or substract from db09b0615ad40a0 just 1

RESULT

E7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * db09b0615ad40a1 =

e7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

Why difference so BIG ?

What is this for "magic" number ? This is not mod(n) not prime or what Huh?

p.s. all numbers were is a private keys.

Big Thank You !!!

[
Minase
Member
**
Offline Offline

Activity: 72
Merit: 43


View Profile
August 03, 2021, 12:00:08 PM
Last edit: August 03, 2021, 12:14:50 PM by Minase
 #2

it's just math...
try running this python script and you will obtain the above results

Code:
large = 0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a1 % 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
print(hex(large))

//edit
here is how you obtain the above results
Code:
0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a0 = 0xc65a01ff0c01161fffffffffffffffff03f0ddcaa8758cda774b830b9f88aad4d5e92905510c7a0
0xc65a01ff0c01161fffffffffffffffff03f0ddcaa8758cda774b830b9f88aad4d5e92905510c7a0 = N * 0x65a01ff0c01162 + 0xfc07a1825367bbe (this is the remainder)

0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a1 = 0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc5079
0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc5079 = N * 0xc65a01ff0c01162 + 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

hope it helps you  Grin
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 12:16:51 PM
 #3

it's just math...
try running this python script and you will obtain the above results

Code:
large = 0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a1 % 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
print(hex(large))

//edit
here is how you obtain the above results
Code:
0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a0 = 0xc65a01ff0c01161fffffffffffffffff03f0ddcaa8758cda774b830b9f88aad4d5e92905510c7a0
0xc65a01ff0c01161fffffffffffffffff03f0ddcaa8758cda774b830b9f88aad4d5e92905510c7a0 % N = N * 0x65a01ff0c01162 + 0xfc07a1825367bbe (this is the remainder)

0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a1 = 0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc5079
0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc5079% N = N * 0xc65a01ff0c01162+ 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497


hope it helps you  Grin

Yes, thin I multiply to 0xdb09b0615ad40a0 reult = 0xfc07a1825367bbe

then to 0xdb09b0615ad40a1 result = 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

result differense :0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497 - 0xdb09b0615ad40a1 e7d2af2fc9ff9caf795d2eed256567679873fc547a513aa85c9a0d398634c3f7 !!!! Why so big differece ?

[
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 12:19:40 PM
 #4

it's just math...
try running this python script and you will obtain the above results

Code:
large = 0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a1 % 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
print(hex(large))

//edit
here is how you obtain the above results
Code:
0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a0 = 0xc65a01ff0c01161fffffffffffffffff03f0ddcaa8758cda774b830b9f88aad4d5e92905510c7a0
0xc65a01ff0c01161fffffffffffffffff03f0ddcaa8758cda774b830b9f88aad4d5e92905510c7a0 = N * 0x65a01ff0c01162 + 0xfc07a1825367bbe (this is the remainder)

0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * 0xdb09b0615ad40a1 = 0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc5079
0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc5079 = N * 0xc65a01ff0c01162 + 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

hope it helps you  Grin

 Grin Grin Grin Grin

Thank you Bro, I will continue research currently

[
Minase
Member
**
Offline Offline

Activity: 72
Merit: 43


View Profile
August 03, 2021, 12:21:45 PM
 #5

because at the first result 0xfc07a1825367bbe you add 0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 and you obtain 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497 * 1 = 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

Thats how it works
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 12:32:29 PM
 #6

because at the first result 0xfc07a1825367bbe you add 0xE7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 and you obtain 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497 * 1 = 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497

Thats how it works

Bro, yo talk about not first rsult, you talk about second result

first result is a db09b0615ad40a0

this  - 0xe7d2af2fc9ff9caf795d2eed256567679873fc547a513aa86a4aa83f9be20497 second result.

Thank you, I understand now were from "many" numbers was come. Wink

 

[
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 12:37:30 PM
 #7

@Minase, bro,how to compute reminders ?   Grin

[
Minase
Member
**
Offline Offline

Activity: 72
Merit: 43


View Profile
August 03, 2021, 12:39:54 PM
 #8

% is the modulus operator.
Almost any programming language have it implemented. simple % or double %% (depending on the language)

LARGE_NR % N = remainder
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 12:44:13 PM
 #9

% is the modulus operator.
Almost any programming language have it implemented. simple % or double %% (depending on the language)

LARGE_NR % N = remainder

But you compute exact reminder, how you do it ?

How you get 0x65a01ff0c01162 bro ?

 Grin Grin

[
Minase
Member
**
Offline Offline

Activity: 72
Merit: 43


View Profile
August 03, 2021, 12:47:28 PM
 #10

you mean this number ? 0xc65a01ff0c01162 ? how i calculated this?
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 12:48:59 PM
 #11

you mean this number ? 0xc65a01ff0c01162 ? how i calculated this?

yes Bro

How ?

[
Minase
Member
**
Offline Offline

Activity: 72
Merit: 43


View Profile
August 03, 2021, 12:53:10 PM
Merited by COBRAS (1)
 #12

i used floor division to obtain that number (python language) NR_A // NR_B

0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc50 79 // N = 0xc65a01ff0c01162

COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 12:56:27 PM
 #13

i used floor division to obtain that number (python language) NR_A // NR_B

0xc65a01ff0c01162e7d2af2fc9ff9caf699c3cc9cfecc0353fe8b4853449c555a7e8c0b7cbbc50 79 // N = 0xc65a01ff0c01162



Thank You Very Mach Minase !!! Now I uderstand mach more.


and I was send you 1 merit.

[
Minase
Member
**
Offline Offline

Activity: 72
Merit: 43


View Profile
August 03, 2021, 01:01:31 PM
 #14

Glad to help you  Cheesy
NotATether
Legendary
*
Offline Offline

Activity: 1778
Merit: 7375


Top Crypto Casino


View Profile WWW
August 03, 2021, 01:12:26 PM
 #15

You're getting such a wild difference because every time you add 1 to a factor, you are performing another point addition, the operations of which are non-trivial and are described here. It allows several opportunities for the result to overflow which triggers a modulus, hence why you also can't see a relationship between the two results at a first glance.

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
COBRAS (OP)
Member
**
Offline Offline

Activity: 1018
Merit: 23


View Profile
August 03, 2021, 01:16:52 PM
 #16

You're getting such a wild difference because every time you add 1 to a factor, you are performing another point addition, the operations of which are non-trivial and are described here. It allows several opportunities for the result to overflow which triggers a modulus, hence why you also can't see a relationship between the two results at a first glance.

I hope I will understand difference betwin factors and not factors and not a factors.


Quote
time you add 1 to a factor,


no, you cann add 2 or 3 etc... and get some result, this is not so easy...

[
NotATether
Legendary
*
Offline Offline

Activity: 1778
Merit: 7375


Top Crypto Casino


View Profile WWW
August 03, 2021, 01:23:27 PM
 #17

no, you cann add 2 or 3 etc... and get some result, this is not so easy...

Exactly, each additional amount you increment the term by makes even more point additions hence makes the result look more "pseudorandom".

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
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!