Bitcoin Forum
October 16, 2026, 05:40:22 PM *
News: Latest Bitcoin Core release: 31.1 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Development & Technical Discussion / Private key Generation and how public key derived from Private Key on: April 25, 2013, 09:53:58 AM
Hi everyone!!

I'm looking information about the first process of the creation of the Bitcoin Address, because the rest of the process I know, and the only questions that I have are with the first two steps.

    1 - How is the private key generated?
I found that information:
Quote
The private key is an ECDSA secp256k1, and is a random number. This secp256k1 has to be a number between 1 and 115792089237316195423570985008687907852837564279074904382605163141518161494336 (or in hexadecimal, between 1 and FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364140).
Is really a random number of the ECDSA secp256k1 o it has an specific protocol and is not exactly a random number?

    2 - How is the public key derived from private key?
I found that in a forum:
Quote
The private key is converted to a public key by performing an Elliptic Curve point multiplication with the curve’s base point. The result is an (x,y) coordinate pair, which constitutes the public key.

There was a sinple equation or way to calculate the whole public key form the private key, or if it's complicated explain in a simple words how this conversion works? The private key is hashed with something or is a simply aplication of an equation?

I know that in the Wiki exists this process, but the first two step there aren't explain in detail, and I want to know this steps in detail.
https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses

And this is the topic on the forum when I find some things, but is a little bit complexe for me.
https://bitcointalk.org/index.php?topic=78132.0

If someone could help me with these two questons I would appreciate.

Thanks
2  Other / Beginners & Help / Private key Generation and how public key derived from Private Key on: April 25, 2013, 08:17:31 AM
Hi everyone!!

I'm looking information about the first process of the creation of the Bitcoin Address, because the rest of the process I know, and the only questions that I have are with the first two steps.

    1 - How is the private key generated?
I found that information:
Quote
The private key is an ECDSA secp256k1, and is a random number. This secp256k1 has to be a number between 1 and 115792089237316195423570985008687907852837564279074904382605163141518161494336 (or in hexadecimal, between 1 and FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364140).
Is really a random number of the ECDSA secp256k1 o it has an specific protocol and is not exactly a random number?

    2 - How is the public key derived from private key?
I found that in a forum:
Quote
The private key is converted to a public key by performing an Elliptic Curve point multiplication with the curve’s base point. The result is an (x,y) coordinate pair, which constitutes the public key.

There was a sinple equation or way to calculate the whole public key form the private key, or if it's complicated explain in a simple words how this conversion works? The private key is hashed with something or is a simply aplication of an equation?

I know that in the Wiki exists this process, but the first two step there aren't explain in detail, and I want to know this steps in detail.
https://en.bitcoin.it/wiki/Technical_background_of_Bitcoin_addresses

And this is the topic on the forum when I find some things, but is a little bit complexe for me.
https://bitcointalk.org/index.php?topic=78132.0

If someone could help me with these two questons I would appreciate.

Thanks
3  Other / Beginners & Help / How miners accept transaction? on: April 24, 2013, 01:10:50 PM
Hi,

I'm researching about Bitcoin and I have this problem. I know that miner are be able to accept or no transactions, and I'm looking about the way that they can do that.
If you use the mining program is only for mining bitcoins and find blocks, but after find a block I don't know how a miner can accept o discard the transactions into the block. When you are mining in a pool I suppose that the pool or the admin of the pool is the person who decides that, but I don't know how and the software it use for that (you need to enter to the source code of Bitcoin client?).

And the another question is if there is a "bad" miner and he accepts bad or fake transactions, but this transaction needs the confirmation of more miners, so this transaction can't be never arrive to the block chain?

I don't know if I explain my questions so clear, and if these questions are correctly written, but if you need more explanation about questions, please reply me.

Thanks.
4  Other / Beginners & Help / !!!OP_EQUALVERIFY!!!! on: March 27, 2013, 03:31:22 PM
Hello!!

My name is Ander

I'm working searching information about Bitcoins, and after staying lot of time reading articles and all the information on the Wiki, now I'm trying to understand how Bitcoins works internally. I'm learning more about the encryptation of Bitcoins but there's one thing that I can't understand.

<sig> <pubKey> OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG

In standard transaction, we need the scriptSig and the scriptPubKey. First of all the signature and the sender's public key is combined. Then the public key of the sender is duplicated and then this key is hashed. After thar we put the receiver's public key hash, and taking this two hashes then we checked both.
But my problem is if the function of OP_EQUALVERIFY check if this two hashes are equal or not, because is imposible that they are equal, or I'm wrong about this process and this function is not that I think it is.

I read this topic on this forum but I'm not sure if I understand what two hashes compares the OP_EQUALVERIFY.

https://bitcointalk.org/index.php?topic=40100.0

I hope and answer for my question.

Thank you in advance for the help, and sorry for my english. I'm not used to write in English.

Ander
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!