Bitcoin Forum
November 05, 2024, 08:20:10 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 请教一个比特币地址的问题  (Read 947 times)
realdos (OP)
Full Member
***
Offline Offline

Activity: 167
Merit: 100


View Profile
May 12, 2013, 09:12:45 PM
 #1

目前通过网上的资料,可以知道比特币的地址产生流程:

0 - Having a private ECDSA key
   18E14A7B6A307F426A94F8114701E7C8E774E7F9A47E2C2035DB29A206321725
1 - Take the corresponding public key generated with it (65 bytes, 1 byte 0x04, 32 bytes corresponding to X coordinate, 32 bytes corresponding to Y coordinate)   0450863AD64A87AE8A2FE83C1AF1A8403CB53F53E486D8511DAD8A04887E5B23522CD470243453A 299FA9E77237716103ABC11A1DF38855ED6F2EE187E9C582BA6
2 - Perform SHA-256 hashing on the public key
   600FFE422B4E00731A59557A5CCA46CC183944191006324A447BDB2D98D4B408
3 - Perform RIPEMD-160 hashing on the result of SHA-256
   010966776006953D5567439E5E39F86A0D273BEE
4 - Add version byte in front of RIPEMD-160 hash (0x00 for Main Network)
   00010966776006953D5567439E5E39F86A0D273BEE
5 - Perform SHA-256 hash on the extended RIPEMD-160 result
   445C7A8007A93D8733188288BB320A8FE2DEBD2AE1B47F0F50BC10BAE845C094
6 - Perform SHA-256 hash on the result of the previous SHA-256 hash
   D61967F63C7DD183914A4AE452C9F6AD5D462CE3D277798075B107615C1A8A30
7 - Take the first 4 bytes of the second SHA-256 hash. This is the address checksum
   D61967F6
8 - Add the 4 checksum bytes from point 7 at the end of extended RIPEMD-160 hash from point 4. This is the 25-byte binary Bitcoin Address.
   00010966776006953D5567439E5E39F86A0D273BEED61967F6
9 - Convert the result from a byte string into a base58 string using Base58Check encoding. This is the most commonly used Bitcoin Address format
   16UwLL9Risc3QfPqBUvKofHmBQ7wMtjvM


其他流程都好懂,但是第1步,从私匙里获得对应的公匙,这个是怎么拿到的呢?有没有相应的资料可以看看?
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1111


View Profile
May 13, 2013, 04:05:37 AM
 #2

https://en.bitcoin.it/wiki/Secp256k1

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
wdq4587
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
May 13, 2013, 06:44:06 AM
 #3

公开密钥体系是同时生成一对公钥和私钥吧?如果这种体系公钥和私钥是对称的,公钥无法推导出私钥,反之亦然,不然这个体系就被破了。
qufo
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
May 14, 2013, 02:33:21 PM
 #4

同时生成一对的。没法推导。
jl2012
Legendary
*
Offline Offline

Activity: 1792
Merit: 1111


View Profile
May 14, 2013, 03:13:38 PM
 #5

同时生成一对的。没法推导。

沒法推導又如何算出來, 不要亂說吧

Donation address: 374iXxS4BuqFHsEwwxUuH3nvJ69Y7Hqur3 (Bitcoin ONLY)
LRDGENPLYrcTRssGoZrsCT1hngaH3BVkM4 (LTC)
PGP: D3CC 1772 8600 5BB8 FF67 3294 C524 2A1A B393 6517
Gufeng
Sr. Member
****
Offline Offline

Activity: 560
Merit: 250



View Profile
May 14, 2013, 03:18:59 PM
 #6

你可以参考一下该文。最后面有具体的公式。

https://bitcointalk.org/index.php?topic=174583.0
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!