Bitcoin Forum
May 06, 2024, 04:09:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Размер private key у кошелька  (Read 3979 times)
ArsenShnurkov (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1000



View Profile
February 25, 2011, 04:23:37 PM
 #1

Какой размер в битах у RSA private key для wallet ? Где это написано? Как этот ключ генерируется?
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715011782
Hero Member
*
Offline Offline

Posts: 1715011782

View Profile Personal Message (Offline)

Ignore
1715011782
Reply with quote  #2

1715011782
Report to moderator
1715011782
Hero Member
*
Offline Offline

Posts: 1715011782

View Profile Personal Message (Offline)

Ignore
1715011782
Reply with quote  #2

1715011782
Report to moderator
bitcoinex
Sr. Member
****
Offline Offline

Activity: 350
Merit: 252


probiwon.com


View Profile WWW
February 25, 2011, 09:36:58 PM
 #2

Какой размер в битах у RSA private key для wallet ? Где это написано? Как этот ключ генерируется?

там не RSA, там ECDSA

New bitcoin lottery: probiwon.com
- Может, ты ещё и в Невидимую Руку Рынка веруешь? - Зачем же веровать в то, что можно наблюдать непосредственно?
LZ
Legendary
*
Offline Offline

Activity: 1722
Merit: 1072


P2P Cryptocurrency


View Profile
February 25, 2011, 10:37:32 PM
Last edit: February 25, 2011, 11:14:55 PM by lzsaver
 #3

The private key is actually just a 256-bit number. The public key is two 256-bit numbers.  All of those other bytes that Bitcoin is using just contains redundant information about the elliptic curve (redundant since Bitcoin already knows the curve info anyway, and therefore doesn't need it stored with the key).

Пример закрытого ключа:
Code:
ИZы¬П>дЬЧ!©­A4GuХ@пАQ‚®’чЋ

Пример того же ключа в base58:
Code:
EV71KQfoePBeWT79sV1VE7fWRgv1KNUxTNapH6ZbaRfB

Ключ создается функцией OpenSSL EC_KEY_generate_key().

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
Lis
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


Spice must flow!


View Profile
June 13, 2011, 10:11:59 AM
 #4

Ключ создается функцией OpenSSL EC_KEY_generate_key().
мой мозг... =(

You would like to thank?
btc: 14tAPpwzrfZqBeFVvfBZHiBdByYhsoFofn
SmallMminer
Hero Member
*****
Offline Offline

Activity: 658
Merit: 502


View Profile
June 15, 2011, 09:37:03 AM
 #5

Ключ создается функцией OpenSSL EC_KEY_generate_key().
мой мозг... =(
=))) Это мне напомнило, как я однажды забрёл на какой то форум принципиальных пользователей и программеров и так один другому писал "Со смещением на 8 будет гораздо лучше"  Smiley
Lis
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


Spice must flow!


View Profile
June 15, 2011, 01:29:14 PM
Last edit: June 15, 2011, 01:41:38 PM by Lis
 #6

The private key is actually just a 256-bit number. The public key is two 256-bit numbers.  All of those other bytes that Bitcoin is using just contains redundant information about the elliptic curve (redundant since Bitcoin already knows the curve info anyway, and therefore doesn't need it stored with the key).

Пример закрытого ключа:
Code:
ИZы¬П>дЬЧ!©­A4GuХ@пАQ‚®’чЋ

Пример того же ключа в base58:
Code:
EV71KQfoePBeWT79sV1VE7fWRgv1KNUxTNapH6ZbaRfB

Ключ создается функцией OpenSSL EC_KEY_generate_key().
EV71KQfoePBeWT79sV1VE7fWRgv1KNUxTNapH6ZbaRfB(b58) -> 7330d9589f952a4e38c38163d19e2d671f945385201edb39ce0f982ae92f78e(hex) 63 символа...?

возмем транзакцию
http://blockexplorer.com/rawtx/a2844948747244e5582b385e86de85b386443353cfe6803091ac50257baf7ee7
pub key
Code:
04dc587e1c7e803a8b6deab1bb52a0da19abef61fe5cc669c7de2a6dbb3dac292d796b19ac7d5b229eb2200c12c36acee49a1119ec4e50c2b97776d109d9fa7395
130 символов/2 = 65 байт, кажется что то не правильно посчитал...
откуда тогда "The public key is two 256-bit numbers"?

You would like to thank?
btc: 14tAPpwzrfZqBeFVvfBZHiBdByYhsoFofn
LZ
Legendary
*
Offline Offline

Activity: 1722
Merit: 1072


P2P Cryptocurrency


View Profile
June 15, 2011, 03:30:07 PM
 #7

130 символов/2 = 65 байт, кажется что то не правильно посчитал...
откуда тогда "The public key is two 256-bit numbers"?
256*2/8=64 байта. Добавляем еще 0x04 в начало и все сходится. Smiley

My OpenPGP fingerprint: 5099EB8C0F2E68C63B4ECBB9A9D0993E04143362
Lis
Sr. Member
****
Offline Offline

Activity: 292
Merit: 251


Spice must flow!


View Profile
June 16, 2011, 04:54:01 AM
Last edit: June 16, 2011, 10:47:21 AM by Lis
 #8

130 символов/2 = 65 байт, кажется что то не правильно посчитал...
откуда тогда "The public key is two 256-bit numbers"?
256*2/8=64 байта. Добавляем еще 0x04 в начало и все сходится. Smiley


Code:
$python
>>>hex_open_key = '04dc587e1c7e803a8b6deab1bb52a0da19abef61fe5cc669c7de2a6dbb3dac292d796b19ac7d5b229eb2200c12c36acee49a1119ec4e50c2b97776d109d9fa7395'
>>>import hashlib
>>>h160 = hashlib.new('ripemd160')
>>>h160.update(hashlib.sha256(hex_open_key.decode('hex')).hexdigest().decode('hex'))
>>>print h160.hexdigest()
2a956ec9026d8a22b4385522d26522f7db506e14
выходит h160 адрес вычисляется из ключа с 0x04 спереди

кстати, может тему перенести отсюда? только не понятно куда переносить =)

You would like to thank?
btc: 14tAPpwzrfZqBeFVvfBZHiBdByYhsoFofn
ArsenShnurkov (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1000



View Profile
December 14, 2011, 11:35:20 AM
 #9

The private key is actually just a 256-bit number.

Вот тут
https://bitcointalk.org/index.php?topic=54542.0
пишут

128-кубитный квантовый комп
http://www.dwavesys.com/en/products-services.html
Занимает 10 квадратных метров

512 qubits and the system is scheduled for release late in 2012.

там не RSA, там ECDSA

shor's algorithm
http://en.wikipedia.org/wiki/Shor%27s_algorithm
can be modified to work on elliptic curves.

А тут еще курс обвалился с $3.20 до $3
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!