Bitcoin wallet address private key

Приватный ключ биткоина (private key) – что это такое, как выглядит, как получить и безопасно сохранить

Сегодня рассмотрим значение слов «приватный ключ биткоина» – для чего он нужен, как получить и как правильно хранить.

В то время как публичный ключ, или адрес, представляет собой средство идентификации кошелька, подобие логина, приватный ключ – строго конфиденциальная информация. Внешне выглядит как набор символов, введя которые, пользователь получает доступ к управлению счетом. Приватные (их еще называют частными или закрытыми) ключи хранятся в специальном файле, публичные –формируются криптографическим методом именно на основе приватных.

Как внешне выглядят публичный и приватный ключи кошелька биткоина

Приватный ключ биткоина кодируется в следующих форматах: Base64, MINI, Hex, WIF, сжатый WIF. Все они взаимосвязаны и преобразуются один в другой:

  • Формат WIF (51 символ, «5» в начале): 5JPeWYZx922hXi49Lg2RJPwLfqcmDGS9YegMNgANvx8cJa6kNK8.
  • Большинство криптовалютных кошельков, используют для хранения приватных ключей WIF-сжатый формат (52 символа, начинается с «L» или «K»): KykxZQLSNPYVtYCsoqFGFnEqpRar997zihJgvfrPo8LapFrAtaea.
  • Формат Hex (64 символа): 4BBFF74CA25A2A00409DCB24EC0418E9A41F9B3B56216A183E0E9731F4589DC6.
  • Формат Base64 (44 символа): S7/3TKJaKgBAncsk7AQY6aQfmztWIWoYPg6XMfRYncY=.

На картинке один приватный ключ биткоина в разных форматах:

Публичный адрес (ключ)

Внешний вид публичного биткоин-ключа в различных форматах:

  • Наиболее используемый в кошельках — короткий адрес. Он имеет вид 1BSUkuwtdM7gkdy6W4Q954gNKWBgy4A19Q и всегда начинается с единицы или тройки (segwit address).

Публичные ключи (public key) видны всем желающим и используются как адрес для отправки или получения биткоинов. В одном кошельке можно сгенерировать неограниченное количество публичных ключей. Каждому будет соответствовать свой приватный ключ.

Как создать приватные биткоин-ключи

При создании любого кошелька для биткоина создается приватный ключ. В зависимости от вида бумажников можно обладать контролем над ними или нет. Последний случай больше относится к онлайн-сервисам, на которых можно пройти простую регистрацию, получить адрес биткоина, но приватные ключи не доступны. Контроль над ними имеют владельцы данных онлайн-кошельков. Поэтому рекомендуем выбирать криптокошельки с возможностью выгрузки приватных ключей или сохранением seed.

  1. Локальные. Устанавливаются на десктопные или мобильные устройства. К ним относят Jaxx, Electrum, Coinomi, Exodus и другие. Делятся на «тонкие» и «толстые», в зависимости от способа обращения к блокчейн-сети.
  2. Онлайн-кошельки. Для их создания обычно нужно указать email и пароль. Такие сервисы могут предоставлять возможность просмотра приватных ключей или не иметь такой функции. Популярные сайты для хранения криптомонет: blockchain.com.
  3. Биржи криптовалют. После создания счета доступны кошельки для криптовалют, которые в листинге площадки. Приватные ключи не предоставляются. Можно вносить депозит на предоставленный адрес, торговать криптовалютой и совершать вывод. Популярные торговые платформы: LocalBitcoins (ЛокалБиткоинс), EXMO, Binance, Huobi, BitMEX и другие.
  4. Аппаратные кошельки. Наиболее безопасный вариант сохранить криптоактивы в безопасности. Владелец имеет полный контроль над всеми приватными ключами, а их кража невозможна. Выпускают аппаратные устройства Ledger, Trezor и другие.
  5. Бумажные. Это может быть просто записанный приватный ключ на бумаге или сервисы, которые его генерируют и предоставляют возможность распечатать и сохранить. Способ относится к «холодному» хранению криптовалют.

Как получить (экспортировать) приватный ключ биткоина

Бывают ситуации, когда необходимо получить свой приватный ключ из кошелька для тех или иных целей. Разберем, как это сделать.

Извлечение (экспорт) приватных ключей из криптокошельков

В качестве примера используется «тонкий» десктопный кошелек Exodus. В нем нужно произвести операцию экспорта приватного биткоин-ключа. Изначально она надежно скрыта, поскольку разработчики справедливо считают, что неопытному пользователю лучше не пытаться ее произвести. Неверные действия чреваты потерей средств из кошелька.

Инструкция по экспорту:

  1. Активировать «Developer Menu». В Windows и Linux это действие производится нажатием сочетания клавиш Ctrl+Shift+D.
  2. Выбрать ту криптовалюту, частный ключ которой интересует в текущий момент. Перейти по пунктам: «Developer» – «Assets» – «Bitcoin» или иная выбранная валюта – «Export Private Keys».
  3. В появившемся окне подтвердить свое желание нажатием кнопки «I’m sure».
  4. На рабочем столе появится папка под названием «Exodus-export», внутри – файл формата CSV. Это файл скопировать в надежное место, папку сразу удалить.

Открыть файл можно через текстовый редактор Libre Office, Wordpad, Exel, стандартный Блокнот и т. д. В графе «PRIVKEY» будет буквенно-цифровое сочетание – это и есть приватный (закрытый) ключ биткоина:

Получение приватного ключа из онлайн-кошелька Blockchain

Рассмотрим, как получить приватный ключ в популярном онлайн-кошельке Блокчейн. В настройках функции экспорта ключей нет. Нужно воспользоваться seed-фразой, которая находится по адресу «Настройки» — «Безопасность» — «Фраза для восстановления кошелька». Скопировать все слова и перейти в генератор iancoleman.io . Указать количество слов (12) и вставить их в форму «BIP39 Mnemonic».

Читайте также:  Газовый калькулятор расчет окупаемости

Опуститься вниз страницы в раздел «Derived Addresses». В нем будет адрес, публичный и приватный ключ.

Получение ключа в бумажного кошельке

Бумажные кошельки генерируют приватные ключи локально с помощью выполнения скрипта в браузере.

После сбора случайной энтропии высветится сжатый адрес биткоина и приватный ключ в сжатом WIF-формате. Что с ними делать, понятно по картинке:

Сервис для создания бумажных кошельков: bitaddress.org.

Что такое детерминированный кошелек (HD wallet), seed фраза

В 2011 году для решения ряда проблем с анонимностью разработчики Bitcoin Core выпустили такую разработку, как HD Wallet. HD расшифровывается «hierarchical deterministic», то есть «иерархически детерминированный». Звучит непонятно, но по факту все не так сложно.

В контексте криптовалют словом «иерархия» обозначают связь между элементами. В данном случае появляется возможность использовать один адрес для выяснения второго, а также применять секретную seed-фразу для генерации сразу многих связанных между собой адресов.

Пример seed (backup phase) в кошельке Blockchain (всего 12 слов):

«Детерминированная» система – та, где недопустимы никакие случайности в процессе формирования будущих состояний. То есть конкретные вводные данные всегда будут выдавать конкретный результат.

Преимущества технологии HD wallet:

  1. Усиление анонимности. Владелец HD wallet обладает одной копией программного бумажника с одним тайным ключом (называемым также «семя» или «master key»). При объединении семени с хеш-функциями образуется бесконечное количество связанных между собой адресов. Связь невидима со стороны. Это адреса называют «дочерними».
  2. Легкость запоминания сид-фразы. Записать или выучить код из 12 слов намного легче, чем хранить приватные ключи для каждого отдельного адреса биткоина.
  3. Комфортное резервное копирование. Многие пользователи сталкиваются с проблемами резервного копирования мобильных кошельков на iOS или Android – возникает необходимость использовать один и тот же ключ, а это прямая угроза для безопасности. HD кошелек вообще не требует создания резервных копий, достаточно распечатать или сохранить в надежном месте сид-фразу.

Технология реализована в надстройке Armory для Bitcoin Core, кошельках Electrum, MultiBit HD, BitGo, CarbonWallet, The Hive, Mycelium Bitcoin Wallet, Green Address, Trezor и других.

Как безопасно хранить приватные ключи

Используя интернет-кошельки, следует понимать, что ключи хранятся на серверах компании-разработчика. Пользователь лично владеет private key лишь в случае использования десктопных, аппаратных или бумажных кошельков.

Варианты хранения кода:

  1. На бумаге.
  2. На флешке в виде скриншота или фотографии, pdf-файла.
  3. На жестком диске, в том числе съемном.
  4. На физической монете, металлической пластине (своеобразный аналог аппаратного «холодного» кошелька в форме криптовалютной монеты).
  5. В памяти.

Ни один из перечисленных способов не дает 100%-ную гарантию сохранности ключа, в каждом случае есть вероятность физического повреждения, взлома или кражи. Так что выбор каждый делает, исходя из своих соображений.

В Сети сейчас много злоумышленников, которые мечтают украсть приватный ключ биткоина. Они могут соблазнять бесплатными токенами, предлагать получить новые монеты, а взамен просят загрузить в сеть или созданную ими программу частный ключ. Делать этого ни в коем случае нельзя.

Источник

Private key

Enjoyed the article? Share:

Bitcoin private key is a secret number that allows cryptocurrency to be spent. Every Bitcoin address has a matching private key, which is saved in the wallet file of the person who owns the balance. The private key is mathematically related to the address, and is designed so that the Bitcoin address can be calculated from the private key, but importantly, the same cannot be done in reverse.

Because the Bitcoin private key is the «ticket» that allows someone to spend bitcoins, it is important that these are kept secure. Private keys can be kept on computer files, but they are also short enough that they can be printed on paper. An example of a utility that allows extraction of private keys from your wallet file for printing purposes is pywallet.

Contents

How to Use Bitcoin Private Key [ edit ]

In order to create a transaction with a Bitcoin private key, it must be available to a program or service that allows entry or importing of private keys. Some wallets allow the private key to be imported without generating any transactions while other wallets or services require that the private key be swept. When a private key is swept, a transaction is broadcast that sends the entire balance held by the private key to another address in the wallet or securely controlled by the service in question. Private key can be generated with the special programs generators.

An example of private key sweeping is the method used on MtGox’s Add Funds screen and BIPS Import screen. Just as with any other deposit, there is risk of double-spending so funds are deposited to the MtGox account after a six-confirmation wait (typically one hour). In contrast Blockchain.info’s My Wallet service and Bitcoin-QT each provide a facility to import an encryption private key without creating a sweep transaction.

Technical review [ edit ]

What Does a Bitcoin Private Key Look Like [ edit ]

In Bitcoin, private key is a 256-bit number, which can be represented one of several ways. Here is a private key in hexadecimal — 256 bits in hexadecimal is 32 bytes, or 64 characters in the range 0-9 or A-F. Bitcoin private key length:

Range of valid [ edit ]

Nearly every 256-bit number is a valid private key. Specifically, any 256-bit number between 0x1 and 0xFFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4141 is a valid private key.

Читайте также:  Что такое загрузочная рампа

The range of valid private keys is governed by the secp256k1 ECDSA standard used by Bitcoin.

Base 58 WIf [ edit ]

When we represent private keys in Bitcoin, however, we use a shorter format known as wallet import format, which offers a few advantages. The wallet import format is shorter, and includes built-in error checking codes so that typos can be automatically detected and/or corrected (which is impossible in hex format). Wallet import format is the most common way to represent private keys in blockchain. For private keys associated with uncompressed public keys, they are 51 characters and always start with the number 5. Private keys associated with compressed public keys are 52 characters and start with a capital L or K. This is the same private key in wallet import format.

When a private key is imported, it always corresponds to exactly one Bitcoin address. Any utility which performs the conversion can display the matching address. The mathematical conversion is somewhat complex and best left to a computer, but it’s notable that each private key will always correspond to the same address no matter which program is used to convert it.

The Bitcoin address corresponding to the sample above is: 1CC3X2gu58d6wXUWMffpuzN9JAfTUWu4Kj

Mini format [ edit ]

Some applications use the mini private key format. Not every public key or Bitcoin address has a corresponding mini private key — they have to be generated a certain way in order to ensure a mini private key exists for an address. The mini private key is used for applications where space is critical, such as in QR codes and in physical bitcoins. The above example has a mini key, which is:

How to Find Your Bitcoin Private Key [ edit ]

Sometimes users of virtual currency are wondering how to store the secret code correctly. To do this, it is important to figure out how to get bitcoin private key of the Bitcoin wallet for various storages. Note that the address is generated automatically. For this, special services are used that generate a secret code (as a rule, they are included in the wallet). Another option is to obtain a private key by generating on a special site.

Paper Vault [ edit ]

The most convenient way to generate is using the bitaddress.org service. To get the public and private key of a Bitcoin wallet, you need to do the following steps:

  1. Follow the link above, move the mouse arrow on the display and watch the number on the screen. As soon as it reaches 100 percent, the work is over.
  2. Get information with a QR code (public key) and a sequence of characters that must be kept secret.
  3. Print and/or rewrite the cryptocurrency private key on a piece of paper. During the printing process, it is important to be careful that the device does not save personal information in any folder of the PC. It is advisable to use a laser printer during the printing process. When rewriting characters, it is better to use a high-quality ballpoint pen and write clearly.

An additional security measure is BIP38 type encryption. If you check the box of the same name when creating a paper wallet, then the money from the latter will be available only after entering a special password. To avoid loss of private code, it is advisable to make several copies.

Desktop Wallets [ edit ]

For the Exodus service, you must complete the following steps:

  1. Go to the developer’s menu (as an option, use quick access — Ctrl + Shift + D).
  2. Choose the cryptocurrency of interest for which you need to get a private code. In this case, it is Bitcoin. Next, select the export section. The system issues a warning about the danger of copying the private key. The latter must be kept secret in order to exclude access to the money of unauthorized persons.
  3. Agree to export the code, after which a folder with the necessary information is created on the user’s desktop.
  4. Copy secret information from it, and delete the folder itself.

Online Wallets [ edit ]

Today, one of the most sought after wallets is Blockchain. Previously, it provided the option of obtaining a Bitcoin wallet key, but now it is not. Instead, it became possible to create a secret phrase of 12 words, which acts as a password to access the wallet. The following describes how to use this information to get a private key:

  1. Go to the repository, the settings and security section, and then go to the backup phrase creation section.
  2. Check and, if necessary, print the recovery sheet, and then hide it in a safe place (especially relevant for long-term storage of cryptocurrency).
  3. Record the proposed four words, then press the continue button and rewrite the next batch (until all 12 words are in the hands).
  4. Enter at the suggestion of the wallet four words (any of 12) to verify the correctness of the entry. Now the secret phrase is at hand. It must be stored in such a way as to avoid falling into the hands of other users.
  5. Go to iancoleman.io/bip39/. When entering an address, it is important to be careful not to get to a fake site.
  6. Disconnect from the Network and indicate in the corresponding column BIP39 Mnemonic the recorded phrase of 12 words.
  7. In the bottom line, fix the secret key that is generated by the system. If necessary, it can be stored in a safe place. In practice, this is not necessary, because twelve recorded words completely duplicate the functions of the code.
  8. At the bottom of the page, get a list of wallet-generated addresses and associated private keys. If there is a lot of information, you can use the search button and specify the desired address, and then get the private key attached to it.
Читайте также:  Иностранные инвестиции компании лукойл

Fraud [ edit ]

Any transaction that has the correct signature will be accepted by the Bitcoin network. At the same time, any person who owns your Bitcoin private key can create the correct transaction. These two facts connected together mean that someone who knows your private key can steal from you.

Many paths are open to thieves who want private keys. The two most popular paths are memory carriers (flash cards) and communication channels. Therefore, should adhere to strict measures during transportation and storage of the private keys.

Software wallets usually store private keys in the” wallet file » on the main hard drive. Wallets usually store this file in a standard, well-known directory, making it an ideal target for viruses directed against the owners of currency exchange.

To counter the threat, software wallets offer the ability to encrypt the wallet file. Any intruder who gains access to your wallet file will then need to decode it. The complexity of this task depends on the encryption quality and the strength of the password used. Wallet files can be encrypted with a variety of wallet programs, you just need to set a password.

Although wallet backups are a good idea, they can potentially serve as a leak of private keys. For example, you might find it tempting to save a wallet file in a cloud storage service like Dropbox. However, anyone who can view the backup online (the list of such people may be unexpectedly long), will be able to steal some or all of your money. A similar problem can arise when sending backups to yourself by e-mail or if you leave the backup sheet in an unreliable place at home. Private key encryption can reduce the risk, but not eliminate it completely.

Preventing accidental leakage of private keys-the main task of the “cold storage”.

Private key vs public key [ edit ]

A public key (address) is a set of symbols that the blockchain uses to identify a specific wallet. You get translations for it, you can show it to other users.

Another thing – a private key. Under no circumstances can it be shown to outsiders, including developers Exodus wallet.

In no case, it can not be imported into other people’s wallets or into new wallets (for example, to obtain Bitcoin Cash and Bitcoin Gold) as long as the main wallet (from which the key) has bitcoins. First, transfer them to another secure wallet, and then import the private key into new wallets.

  • There are many online scammers who use social engineering to steal your keys.
  • They can offer you free tokens (Airdrop) for every bitcoin you store in your wallet.
  • Or help to get a new coin (Bitcoin Gold) faster than others through an innovative online wallet.
  • Gimmicks can be mass. Their main task is to get you to upload a private key to the network or an application they have written.

If you do it – and you can say goodbye to the cryptocurrency portfolio.

The security of private key [ edit ]

Operations with cryptocurrency wallets (especially for the export and import of private keys) should be performed only on a secure computer, without connecting to the Internet.

The correct option is to install Linux (easy to manage – Mint) on a virtual machine, open the Exodus wallet on its base and carry out all operations in this environment.

There may be too many hidden threats (dangerous loopholes list) on your desktop to export private keys with a serious cryptocurrency balance.

Summary [ edit ]

If a private key with a Bitcoin balance is compromised or stolen, the bitcoin balance can only be protected if it is immediately sent to a different address whose private key is not compromised. Because bitcoins can only be spent once, once they are spent using a private key, the private key is worthless unless new amount are sent to the address. Furthermore, private key can be observed in the cryptography context. It is also known like a SSH key, secret key or encryption key.

Источник

Оцените статью