Javascript bitcoin address generator

Javascript bitcoin address generator

Hash SHA-256 «CoinAddressGeneratorV3.1.0.jar» = 5f5fa204b1d5505c3056a6432f39ad2628aff47ffcbc73494e566757bce08e60

The Coin-AddressGenerator creates a private key in Bitcoin Wallet Import Format WIF, as well as the associated coin address and public key. A paper wallet with QR code can be created and printed out.

This is a Java application, so you need to install Java!

Start the program

The «Coin_Address_Generator.jar» file is located in the «release» folder. You can start this under Windows if Java is installed simply by double-clicking. On Linux, type in the console: java -jar CoinAddressGeneratorV3.1.0.jar

The project was created with eclipse. You can either import it back into eclipse or use the java source files. All necessary source files are in the src folder. To import to eclipse go to File / Open Projects from File System, select the ZIP archive, finish! All required libraries are already included in the project (in the lib folder). So you can start the project directly.

There is a large list of coins to choose from that can be imported. However, some coins may not work properly because the coin parameter list is quickly out of date and cannot be kept up to date. It is the responsibility of each user to check that the keys created are correct! Use of this software is at your own risk!

There are three ways to create the private key:

Entry as text: Any text can be entered. This text then becomes the private key with a hash, Public key and the Bitcoin address generated.

cube sign:
There can be 100 dice characters in Base6 (also characters between 1 and 6). This includes: 1=1, 2=2, 3=3, 4=4, 5=5, 6=0.

The private key can also be entered directly in all common formats: Hexa, Base58, Base58 compressed and Base64. Checksum check is implemented.

  • The format of the generated keys and addresses can be set under «Settings»
  • the public key is given in hexa
  • The coin address can be output in WIF-uncompressed, WIF-compressed, P2SH and Bech32
  • The QR code of the private key and the coin address is displayed

Issue of the coin amount

  • If the internet connection is active, the coin amount belonging to the key is displayed
  • The amount is queried on a suitable website
  • If no internet connection is available, nothing is displayed.

For safety, the program reads the QR code back in as an image, scanned and checked. This prevents an incorrect QR code from being displayed.

Save and open the wallet

An encrypted wallet with any number of keys can be saved. A strong password must be entered for this. To increase security, encryption is carried out in succession using AES and Twofish. In addition, the encryption contains a certain brute force protection, which extends the runtime with the help of a scrypt hash.

Create a paper wallet.

The surface of the program can be printed out or saved as an image.

If you find bugs, ideas for improvements, or just have questions, I am happy about every mail: Maxwell-KSP@gmx.de

If you like the Coin Address Generator, I would be very happy to receive a donation:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS «AS IS» AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

Generate Bitcoin private key and Bitcoin address

Источник

Javascript bitcoin address generator

JavaScript Client-Side Bitcoin Wallet Generator

Now Bitcoin addresses and their corresponding private key can be conveniently generated in a web browser.

The bitaddress.org project provides an all-in-one HTML document with embedded JavaScript/Css/Images. The JavaScript is readable not minified and contains no XMLHttpRequest’s (no AJAX). The benefit of this technique is you can load the JavaScript locally and trust that the JavaScript did not change after being loaded.

Читайте также:  Татнефть дивидендная доходность по годам

Here is a link to the BitcoinTalk.org forum topic discussing this project: https://bitcointalk.org/index.php?topic=43496.0

Please send DONATIONS for this project to Bitcoin Address: 1NiNja1bUmhSoTXozBRBEtR8LeF9TGbZBN

For Bulk Wallet I recommended using Google Chrome, it’s the fastest.

Requires IE9+, Firefox, Chrome or sufficient JavaScript support.

Mobile Safari only works with iPhone4 or newer devices. Older devices timeout while executing JavaScript.

DO NOT use Opera Mini it renders JavaScript output server side, therefore they might record the private key you generated.

BIP38 most likely will not work on mobile devices due to hardware limitations.

Notice of Copyrights and Licenses:

The bitaddress.org project, software and embedded resources are copyright bitaddress.org.

The bitaddress.org name and logo are not part of the open source license.

Portions of the all-in-one HTML document contain JavaScript codes that are the copyrights of others. The individual copyrights are included throughout the document along with their licenses. Included JavaScript libraries are separated with HTML script tags.

Summary of JavaScript functions with a redistributable license:

JavaScript function License
Array.prototype.map Public Domain
window.Crypto BSD License
window.SecureRandom BSD License
window.EllipticCurve BSD License
window.BigInteger BSD License
window.QRCode MIT License
window.Bitcoin MIT License

The bitaddress.org software is available under The MIT License (MIT) Copyright (c) 2011-2013 bitaddress.org

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the «Software»), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED «AS IS», WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

JavaScript Client-Side Bitcoin Wallet Generator

Источник

Javascript bitcoin address generator

A javascript Bitcoin library for node.js and browsers. Written in TypeScript, but committing the JS files to verify.

Released under the terms of the MIT LICENSE.

Should I use this in production?

If you are thinking of using the master branch of this library in production, stop. Master is not stable; it is our development branch, and only tagged releases may be classified as stable.

Can I trust this code?

We recommend every user of this library and the bitcoinjs ecosystem audit and verify any underlying code for its validity and suitability, including reviewing any and all of your project’s dependencies.

Mistakes and bugs happen, but with your help in resolving and reporting issues, together we can produce open source software that is:

  • Easy to audit and verify,
  • Tested, with test coverage >95%,
  • Advanced and feature rich,
  • Standardized, using prettier and Node Buffer ‘s throughout, and
  • Friendly, with a strong and helpful community, ready to answer questions.

Presently, we do not have any formal documentation other than our examples, please ask for help if our examples aren’t enough to guide you.

You can find a Web UI that covers most of the psbt.ts , transaction.ts and p2*.ts APIs here.

Typically we support the Node Maintenance LTS version. If in doubt, see the .travis.yml for what versions are used by our continuous integration tests.

WARNING: We presently don’t provide any tooling to verify that the release on npm matches GitHub. As such, you should verify anything downloaded by npm against your own verified copy.

When working with private keys, the random number generator is fundamentally one of the most important parts of any software you write. For random number generation, we default to the randombytes module, which uses window.crypto.getRandomValues in the browser, or Node js’ crypto.randomBytes , depending on your build system. Although this default is

OK, there is no simple way to detect if the underlying RNG provided is good enough, or if it is catastrophically bad. You should always verify this yourself to your own standards.

This library uses tiny-secp256k1, which uses RFC6979 to help prevent k re-use and exploitation. Unfortunately, this isn’t a silver bullet. Often, Javascript itself is working against us by bypassing these counter-measures.

Problems in Buffer (UInt8Array) , for example, can trivially result in catastrophic fund loss without any warning. It can do this through undermining your random number generation, accidentally producing a duplicate k value, sending Bitcoin to a malformed output script, or any of a million different ways. Running tests in your target environment is important and a recommended step to verify continuously.

Finally, adhere to best practice. We are not an authorative source of best practice, but, at the very least:

  • Don’t re-use addresses.
  • Don’t share BIP32 extended public keys (‘xpubs’). They are a liability, and it only takes 1 misplaced private key (or a buggy implementation!) and you are vulnerable to catastrophic fund loss.
  • Don’t use Math.random — in any way — don’t.
  • Enforce that users always verify (manually) a freshly-decoded human-readable version of their intended transaction before broadcast.
  • Don’t ask users to generate mnemonics, or ‘brain wallets’, humans are terrible random number generators.
  • Lastly, if you can, use Typescript or similar.

The recommended method of using bitcoinjs-lib in your browser is through Browserify. If you’re familiar with how to use browserify, ignore this and carry on, otherwise, it is recommended to read the tutorial at https://browserify.org/.

NOTE: We use Node Maintenance LTS features, if you need strict ES5, use —transform babelify in conjunction with your browserify step (using an es2015 preset).

WARNING: iOS devices have problems, use atleast buffer@5.0.5 or greater, and enforce the test suites (for Buffer , and any other dependency) pass before use.

Typescript or VSCode users

Type declarations for Typescript are included in this library. Normal installation should include all the needed type information.

The below examples are implemented as integration tests, they should be very easy to understand. Otherwise, pull requests are appreciated. Some examples interact (via HTTPS) with a 3rd Party Blockchain Provider (3PBP).

If you have a use case that you feel could be listed here, please ask for it!

Источник

Javascript bitcoin address generator

Bitcoin Empire Address Generator

Bitcoin Empire: To The Moon is a tabletop card game seeking crowd funding on Kickstarter. As well as being an incredibly enjoyable game, the cards have letters and number printed on them enabling the deck to be used as a random number generator with excellent entropy. The Base58 encoded random number can be transformed into a bitcoin address on the official Bitcoin Empire website, however it is a lot more secure to perform this process on an offline machine. Which is why this repository exists.

Simple rule, if you control the keys; it’s your bitcoin. If you don’t control the keys; it’s not your bitcoin. Your keys; your bitcoin. Not your keys; not your bitcoin.

A quote from Andreas Antonopoulos.

  • Buy Bitcoin Empire: To The Moon on Kickstarter
  • Shuffle the deck of cards really really well
  • Download this repository
  • Open index.html offline
  • Enter the random string from the deck of cards
  • Congratulations, you’ve just created bitcoin address and private key

Big thanks to Warp Wallet, bitcoinjs and cryptocoinjs for inspiration and making this possible.

Bitcoin Empire’s address generator is of course offered without any warranty of any kind; if you lose your bitcoins due to a bug in our software, your keystrokes being recorded on a malware-infested XP rig from 2003, a weak passphrase, or even a typo, we are sorry in the most respectful way, but we cannot help you. Of course if you’re messing around with bitcoins, you know how dangerous it is.

If you like our style, you enjoy our address generator or you want to make a contribution. Our bitcoin address is 19sqKcZbZakw8Hmmy2VgoRtUbka5spZMhc.

Источник

Оффлайн генераторы биткоин ключей и их использование

Что вы будете делать, допустим, если завтра прекратится производство аппаратных кошельков, а интернет провайдерам выдадут указание блокировать исходящие подключения по портам Bitcoin Core, Electrum и остальных популярных кошельков, а? Звучит слишком фантастично, согласен. Но в этой статье я хочу поделиться несколькими интересными утилитами для генерации приватных ключей и сидов оффлайн, вне основных кошельков.

Первым делом, давайте определимся что определяет хороший оффлайн генератор ключей. Не так много пунктов:

  1. Открытый исходный код
  2. Возможность запуска и генерации оффлайн
  3. Возможность самому закладывать необходимую энтропию в процесс генерации

Если по первым двум пунктам все понятно, то третий часто упускается, хоть он не менее важен. Большинство генераторов не имеют такой возможности, и вам необходимо пользоваться javascript генератором «случайных» чисел math.random(), который на самом деле НЕ ЯВЛЯЕТСЯ ГСЧ, так как не имеет сильного источника энтропии.

Далее я не буду затрагивать необходимые меры для безопасной генерации биткоин ключей, как то полностью чистый оффлайновый компьютер или дополнительные вспомогательные вещи типа BitKey. Здесь мы предположим что с секьюрностью у вас все хорошо, и будем обсуждать только сами оффлайн генераторы.

1. Coinbin

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

Но его мультифункциональность имеет один существенный недостаток: не удовлетворяет п.3, для генерации используется javascript.

В принципе, если вам нужен проверенный кошелек для быстрой генерации адреса (притом любого, как обычного так и Сегвит) или даже HD кошелька, то неплохой выбор.

Кликаете «+New» и выбираете что вам необходимо.

2. BIP39 генератор от iancoleman

В отличии от coinbin-a этот, без сомнения самый известный генератор, подходит под все три пункта, так как в нем реализована возможность закладывать собственную энтропию

чтобы открыть поле ввода энтропии, необходимо кликнуть сюда

Работает это так: При нажатии на «show entropy details» разворачивается подокно, где отображено пустое поле Entropy и снизу много его разнообразных параметров. Заполнить это поле можно введя туда двоичное число, шестнадцатиричное, результаты кубиков или карты.
Вы например подкидываете монетку 120 раз и каждый результат нумеруете 1 или 0, в зависимости был орел или решка. После каждого броска вы заносите результат в поле энтропии и продолжаете. Таким образом вы получаете полностью рандомное число, которое используется как энтропия.

Или же вы можете взять шестигранный кубик и начать его подбрасывать. Первый результат броска — 5, второй — 1, третий — 4 и четвертый опять 5. Получается сид число 5145 . Думаю идея понятна.

По итогу, используя эту энтропию, генератор сам создаст необходимый сид и высветит вам его ниже.

3. Bitaddress

Довольно безхистростный генератор адресов, который при этом удовлетворяет п.3 Генератор воспринимает вашу интернет страницу как большое поле и просит трясти мышкой по нему. В определенный момент времени генератор ставит на рандомном участке поля точку и использует ее координаты для создания энтропии. Этот генератор позволяет шифровать приватные ключи, создавать брейнваллеты (никогда не пользуйтесь ими, они взламываются на раз-два), бумажные кошельки, создать vanity кошелек с необходимым для вас префиксом (красивый адрес).

Также вы можете использовать кубик для создания адресов. Для подробной инструкции кликаете «wallet details», потом прокручиваете вниз и там кликаете на «How do I make a wallet using dice? What is B6?»

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

Скрин если что не конкретно с гитхаба bitaddress-a так что не пугайтесь если количество веток и контрибьюторов там будет отличаться.

4. BtcKeygen

А это самый интересный представитель оффлайновых генераторов, так как он — визуальный! Да да, вы можете вставлять туда любую картинку (правда не больше размерности чем 16х16 пикселей) и он будет использовать ее как энтропию для создания адреса.
ВАЖНО: Не используйте картинки из гугла, фото своих родичей и себя любимого, фото домашних животных и прочую визуальную информацию к которой имеют свободный доступ другие люди.

По хорошему, этот генератор также стоит использовать с монеткой или с любым событием которое в результате дает 1 или 0 (тоесть, true или false)

Подводя итоги…

Хочется сказать, что несмотря на все кошельки обычные, аппаратные, онлайновые, старые добрые «бумажные» кошельки (и все их подобия) могут очень пригодиться в определенных жизненных ситуациях, когда к примеру вам нужно убегать из страны и проходить проверку, в том же аэропорте. Компьютер и телефон могут отобрать, аппаратник могут также найти (если вы конечно не фанат Криминального Чтива и методов которые использовались там, чтобы спрятать часы главного героя), но вот не думаю что у вас отберут записную книжку или же клочок бумаги где будет непонятная запись.

Вы скажете что приватник можно легко определить по виду, и будете правы. Но как ни крути и сид и приватник это всего лишь числа, и ничто не мешает использовать дополнительные меры защиты, как то перевести приватный ключ в 10ую систему счисления, поделить результат на миллиард и умножить на число 3. А по прилету в новую страну проделать ту же операцию, только наоборот и получить все ваши деньги в целости и сохранности. Магия, разве нет?)

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

Источник

Читайте также:  Криптовалюта для покупки апрель
Оцените статью