Title: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: mausuv on April 19, 2022, 02:28:37 PM hi,i speak little eng
priv : 0x1234 orginal pub : px: 37a4aef1f8423ca076e4b7d99a8cabff40ddb8231f2a9f01081f15d7fa65c1ba py: b96ced90a1b8f9b43a18fc900ff55af2be0e94b90a434fca5b9e226b835024cd priv :0x4321 reverse pub : px: ca724c17f382810d9768be999797e4f1c0c8301c3242dde18c1704bab0acd5b py: fc88f4627d17e9a456271c937263abfbb592cdecf172e31979fe6a73b4ebc589 example: Code: orginal pub >> reverse pub need how to reverse convert for Public-key please explain. i need Public-key reverse convert, please understand my problem. ??? make python code please ... solve today please, i need it use this git: https://github.com/ragestack/EC-Point-Operations Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: n0nce on April 19, 2022, 02:57:31 PM Here you go:
Code: a = '0xb862a62e' If you have many of these: Code: keys=['0x1234', '0xb862a62e', '0x60f4d11574f5deee49961d9609ac7', '0xabcdef'] Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: mausuv on April 19, 2022, 03:18:21 PM Here you go: Code: a = '0xb862a62e' If you have many of these: Code: keys=['0x1234', '0xb862a62e', '0x60f4d11574f5deee49961d9609ac7', '0xabcdef'] i know this bro, i need publickey reverse see this pub priv : 0x1234 orginal pub : px: 37a4aef1f8423ca076e4b7d99a8cabff40ddb8231f2a9f01081f15d7fa65c1ba py: b96ced90a1b8f9b43a18fc900ff55af2be0e94b90a434fca5b9e226b835024cd orginal priv :0x4321 reverse pub : px: ca724c17f382810d9768be999797e4f1c0c8301c3242dde18c1704bab0acd5b py: fc88f4627d17e9a456271c937263abfbb592cdecf172e31979fe6a73b4ebc589 reverse Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: _Counselor on April 19, 2022, 03:21:07 PM This cannot be done without knowing the private key.
Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: pooya87 on April 19, 2022, 03:27:12 PM Reversing the bytes order or whatever type of swapping bits is not going to create a relationship between your two public keys, you still have to multiply the resulting integer by the generator point to compute the corresponding public keys.
Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: n0nce on April 19, 2022, 03:29:57 PM i know this bro, That would require breaking public key crypto. :D I gave you what you wanted (reversing the whole hex representation) but you can't go from a public key to a private key; otherwise all the pk cryptography would be broken.i need publickey reverse see this pub Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: PawGo on April 19, 2022, 05:09:26 PM Here you are, a small program in java, uses bitcoinj library. I had 4 minutes to kill, so why not.
BTW there are dozens of way how to reverse string, it is probably one of the most popular tasks for the 1st programming lesson ;) Code: import org.bitcoinj.core.ECKey; Produced output: Code: 1234 -> 37a4aef1f8423ca076e4b7d99a8cabff40ddb8231f2a9f01081f15d7fa65c1ba b96ced90a1b8f9b43a18fc900ff55af2be0e94b90a434fca5b9e226b835024cd Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: mausuv on April 19, 2022, 06:01:42 PM Here you are, a small program in java, uses bitcoinj library. I had 4 minutes to kill, so why not. BTW there are dozens of way how to reverse string, it is probably one of the most popular tasks for the 1st programming lesson ;) Code: import org.bitcoinj.core.ECKey; Produced output: Code: 1234 -> 37a4aef1f8423ca076e4b7d99a8cabff40ddb8231f2a9f01081f15d7fa65c1ba b96ced90a1b8f9b43a18fc900ff55af2be0e94b90a434fca5b9e226b835024cd my question you code working for all my example tell me example: Code: orginal pub >> reverse pub need how to run it java,i dont know java please make python ???, i only know python ,anyone make this java to python Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: PawGo on April 19, 2022, 06:09:37 PM my question you code working for all my example tell me example: Code: orginal pub >> reverse pub need Of course, why not? Code: b862a62e -> 9c58240e50e3ba3f833c82655e8725c037a2294e14cf5d73a5df8d56159de69 4fd08050375c910eecb46adeb9ffde4614adbf875f0493ad8d0a117d23b219e0 Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: mausuv on April 19, 2022, 06:20:16 PM Of course, why not? Code: b862a62e -> 9c58240e50e3ba3f833c82655e8725c037a2294e14cf5d73a5df8d56159de69 4fd08050375c910eecb46adeb9ffde4614adbf875f0493ad8d0a117d23b219e0 i am not understand for java ,i can't read you code so, question is your code working for without private key tell me example like this: enter this publickey : 37a4aef1f8423ca076e4b7d99a8cabff40ddb8231f2a9f01081f15d7fa65c1ba b96ced90a1b8f9b43a18fc900ff55af2be0e94b90a434fca5b9e226b835024cd output is reverse publickey : ca724c17f382810d9768be999797e4f1c0c8301c3242dde18c1704bab0acd5b fc88f4627d17e9a456271c937263abfbb592cdecf172e31979fe6a73b4ebc589 Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: PawGo on April 19, 2022, 06:39:17 PM so, question is your code working for without private key tell me No, it is not possible, like others said before. I have one more remark: you take two random private keys, do a weird operation (“reverse”), calculate public keys from both and you expect to have correlation. It is a mistake from the beginning. You use hexadecimal representation, so you expect that key “abc” has something in common with key “cba”. The same key “12” in hex would be somehow correlated to key “21”. But on other hand, hex 12 is 18 in decimal system, which, if you reverse characters is 81, which is “51” in hex :) do you see it makes no sense at all? If you represent private key in binary format, you will receive again completely different results. Title: Re: how to reverse convert || Public-key example : 0x1234 >> 0x4321 Post by: ymgve2 on April 24, 2022, 05:48:11 PM so, question is your code working for without private key tell me No, it is not possible, like others said before. I have one more remark: you take two random private keys, do a weird operation (“reverse”), calculate public keys from both and you expect to have correlation. It is a mistake from the beginning. You use hexadecimal representation, so you expect that key “abc” has something in common with key “cba”. The same key “12” in hex would be somehow correlated to key “21”. But on other hand, hex 12 is 18 in decimal system, which, if you reverse characters is 81, which is “51” in hex :) do you see it makes no sense at all? If you represent private key in binary format, you will receive again completely different results. Also, it's not even a proper "reverse" in hex form. A proper "reverse" of 0x1234 would be 0x4321000000000000000000000000000000000000000000000000000000000000. (And this still gives no relationship between public keys, of course) |