Bitcoin Forum
April 20, 2024, 01:15:49 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: I need help on How to easily Generate Public key from private key.  (Read 339 times)
Hyphen(-) (OP)
Hero Member
*****
Offline Offline

Activity: 798
Merit: 723



View Profile WWW
March 09, 2022, 01:24:50 PM
Merited by o_e_l_e_o (4), hugeblack (3), BlackHatCoiner (3), ABCbits (2), Issa56 (2), Franctoshi (1)
 #1

Hello there, everyone! I'm new to the forum and I want to learn more about bitcoin. I go a step further and study about key and address since I believe it is the first step in understanding how to keep my bitcoin safe.
During my investigation, I discovered how crucial private keys are. I discovered that the private keys to a Bitcoin wallet are generated randomly, which means they are a collection of random numbers. It's also made clear that public keys are created from private keys using the Elliptic curve  multiplication; secp256k1 in specific.
I understand that Elliptic curve multiplication is been used because it has a Trapdoor function, which makes it difficult to reverse the process, that is no one can reganarate private key from public key.

my question is, is there any alternative mathematical method of generating public keys from private keys apart from Elliptic curve secp256k1?
This is because it's beyond my comprehension, and I'd like to know how I can generate my public keys from my private keys. Thank you very much.

.
.DuelbitsSPORTS.
▄▄▄███████▄▄▄
▄▄█████████████████▄▄
▄██████████████████████▄
██████████████████████████
███████████████████████████
██████████████████████████████
██████████████████████████████
█████████████████████████████
███████████████████████████
█████████████████████████
▀████████████████████████
▀▀███████████████████
██████████████████████████████
██
██
██
██

██
██
██
██

██
██
██
████████▄▄▄▄██▄▄▄██
███▄█▀▄▄▀███▄█████
█████████████▀▀▀██
██▀ ▀██████████████████
███▄███████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
▀█████████████████████▀
▀▀███████████████▀▀
▀▀▀▀█▀▀▀▀
OFFICIAL EUROPEAN
BETTING PARTNER OF
ASTON VILLA FC
██
██
██
██

██
██
██
██

██
██
██
10%   CASHBACK  
          100%   MULTICHARGER  
1713618949
Hero Member
*
Offline Offline

Posts: 1713618949

View Profile Personal Message (Offline)

Ignore
1713618949
Reply with quote  #2

1713618949
Report to moderator
1713618949
Hero Member
*
Offline Offline

Posts: 1713618949

View Profile Personal Message (Offline)

Ignore
1713618949
Reply with quote  #2

1713618949
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, but full nodes are more resource-heavy, and they must do a lengthy initial syncing process. As a result, lightweight clients with somewhat less security are commonly used.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713618949
Hero Member
*
Offline Offline

Posts: 1713618949

View Profile Personal Message (Offline)

Ignore
1713618949
Reply with quote  #2

1713618949
Report to moderator
BlackHatCoiner
Legendary
*
Online Online

Activity: 1498
Merit: 7236


Farewell, Leo


View Profile
March 09, 2022, 01:31:43 PM
Merited by NeuroticFish (2)
 #2

If you want to generate a public key that is valid in secp256k1, then you're limited to its borders; you need it. To find a point in an elliptic curve, you either multiply an already existing starting point (usually referred to as G) with a number, a procedure called Elliptic Curve Multiplication, or add a point to another point, which is called Elliptic Curve Addition.

Learn more: https://learnmeabitcoin.com/beginners/public_keys

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
o_e_l_e_o
In memoriam
Legendary
*
Offline Offline

Activity: 2268
Merit: 18504


View Profile
March 09, 2022, 01:43:20 PM
Merited by ABCbits (2), hugeblack (2), Cookdata (1)
 #3

my question is, is there any alternative mathematical method of generating public keys from private keys apart from Elliptic curve secp256k1?
Yes, there are several different asymmetric cryptography algorithms other than elliptic curve cryptography which can be used to produce a public key from a private key, and even within elliptic curve cryptography, there are several different curves which can be used other than secp256k1. All of this is irrelevant to bitcoin though. The bitcoin protocol only uses the secp256k1 elliptic curve. If you create a public key in some other manner, then you will not be able to spend from the resulting address because you will not be able to produce a valid signature.
Zilon
Sr. Member
****
Offline Offline

Activity: 966
Merit: 421

Bitcoindata.science


View Profile WWW
March 09, 2022, 03:25:32 PM
Last edit: March 09, 2022, 04:43:30 PM by Zilon
 #4

There are many cryptographic curves but bitcoin uses Secp256k1 for it's ownhashing cryptography. This alphanumeric keys collectively forms a cryptographic curve. To get an elliptic curve for public key cryptography some parameters are well defined:
  • We define the two axis a and b of the curve Y2=x3+ax+b
    • We also define the prime of the finite field p
      • The x and y co-ordinate too of the generator point G is defined
      • Lastly we specify the order of the group, generated by G,n
      with all this defined the parameter for Secp256k1 a=0 and b = 7 giving up a general formula of y2 = x3+7
      With all this defined it is only with elliptic curve cryptography bitcoin public keys are generated from it's corresponding private key since the concept of finite fields and elliptic curves are incorporated.
      you can learn more about this here
DannyHamilton
Legendary
*
Offline Offline

Activity: 3360
Merit: 4572



View Profile
March 09, 2022, 04:39:26 PM
Merited by ABCbits (1), hugeblack (1)
 #5

There are many cryptographic curves but bitcoin uses Secp256k1 for it's own hashing signing.

FTFY.

Bitcoin uses the Secp256k1 cureve for ECDSA signing.  It uses SHA256 and RIPEMD160 for most of its hashing.
alexeyneu
Member
**
Offline Offline

Activity: 312
Merit: 30


View Profile
March 17, 2022, 06:22:52 AM
 #6

just did ctrl+f about galois on this page. 0 results ofc.
PawGo
Legendary
*
Offline Offline

Activity: 952
Merit: 1367


View Profile
March 17, 2022, 07:45:08 AM
 #7

my question is, is there any alternative mathematical method of generating public keys from private keys apart from Elliptic curve secp256k1?

You ask two questions, you should be more precise. It is like asking "Is there any other way to travel than by car fiat 500"?
1) Do you want to generate keys for other Elliptic curve? Secp256k1 is just a specific curve, it is like saying that fiat 500 is just a one model of car. You may have different curves (defined by different initial parameters), BUT if you talk about bitcoin, you must use the specific one - Secp256k1
2) Do you want to generate keys not using Elliptic curve? You may travel by train of plane, it is not necessary to use car. For example you may read what is used in case of RSA (hint: prime numbers).

just did ctrl+f about galois on this page. 0 results ofc.


Does it change anything?


alexeyneu
Member
**
Offline Offline

Activity: 312
Merit: 30


View Profile
March 17, 2022, 07:53:25 AM
Last edit: March 28, 2022, 08:55:08 PM by alexeyneu
 #8

yeah it does. you ,for example, should know what is galois fields before write something here
NotATether
Legendary
*
Offline Offline

Activity: 1582
Merit: 6671


bitcoincleanup.com / bitmixlist.org


View Profile WWW
March 17, 2022, 03:40:26 PM
Merited by hugeblack (1)
 #9

my question is, is there any alternative mathematical method of generating public keys from private keys apart from Elliptic curve secp256k1?

Sure there is. The fact is that secp256k1 is just one of the many curves defined on a Galois field (greetings to alexeyneu), so they all share the same basic fundamental properties of Galois fields, namely:

- All curves are cyclic and it is possible to generate any point on the curve by repeatively multiplying it by itself (taking its exponent to some random integer power)
-  (k + l) * G = k * G + l * G , where G is a random point and k and l represent large numbers (the private key) -  this demonstrates that if the sum of two private keys is greater than the curve order (maximum private key - 1) then addition will just wrap around like modular arithmetic.
- Likewise, modular inverse is also possible on all curves, because it is just raising to the power of negative values, which is equivalent to cycling through the points backwards.

There are already some cryptos that use alternative curves such as Monero (Edwards25519) and Ontology (uses NIST P-256), but the vast majority of cryptocurrencies are using either secp256k1 or Edwards25519.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Hyphen(-) (OP)
Hero Member
*****
Offline Offline

Activity: 798
Merit: 723



View Profile WWW
March 28, 2022, 07:40:18 PM
 #10

I want to thank each and everyone for the reply and feedback on my question. I feel loved and i feel highly welcomed in this amazing forum. thank you all.

.
.DuelbitsSPORTS.
▄▄▄███████▄▄▄
▄▄█████████████████▄▄
▄██████████████████████▄
██████████████████████████
███████████████████████████
██████████████████████████████
██████████████████████████████
█████████████████████████████
███████████████████████████
█████████████████████████
▀████████████████████████
▀▀███████████████████
██████████████████████████████
██
██
██
██

██
██
██
██

██
██
██
████████▄▄▄▄██▄▄▄██
███▄█▀▄▄▀███▄█████
█████████████▀▀▀██
██▀ ▀██████████████████
███▄███████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
▀█████████████████████▀
▀▀███████████████▀▀
▀▀▀▀█▀▀▀▀
OFFICIAL EUROPEAN
BETTING PARTNER OF
ASTON VILLA FC
██
██
██
██

██
██
██
██

██
██
██
10%   CASHBACK  
          100%   MULTICHARGER  
Asiska02
Hero Member
*****
Offline Offline

Activity: 798
Merit: 666



View Profile WWW
April 02, 2022, 03:01:30 PM
 #11

You can only get a valid signature by using the elliptic curve multiplication method for generating public keys.
The advantage of using an elliptic curve function is that:
1. The process of creating the public key can’t be reversed (e.g by dividing the co-ordinates of the public key to get the initial private key)
2. The whole process is mathematically connected, therefore one can boast to own a private key by given out its public key during a bitcoin transaction. You can’t give out an account number to send money into when you don’t know the password to be able to spend the money.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
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!