Jump to content

Generate a bitcoin address and private key


Recommended Posts

hello,

I need your help. I dont found a Bitcoin address generator written in autoit, and i really can not write it. I am a beginner, but i learning continously.

I found a graphical generator, looks nice, but i think is impossible to do it :)

http://www.royalforkblog.com/2014/08/11/graphical-address-generator

I found the code on many languages, C, python, etc, but i dont understand, i really dont know how to....

Can anybody make me a script what generate a BTC address & its private key?

I found these codes, maybe can help:

python:

https://github.com/weex/addrgen

c:

https://github.com/matja/bitcoin-tool

visual c source:

https://casascius.com/btcaddress-alpha.zip

 

I would be happy if somebody can help me and make it in autoit.

 

thanks everything

Link to comment
Share on other sites

Did you have a look at the C code you posted the link to?
Do you think it is a simple task to translate to AutoIt?
Another question: Why does it have to be written in AutoIt? You have already found code in other languages.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

noo, i dont think that it is an easy task.. For me looks like a nightmare. :)  But found two short python code, so ithink there is a shorter/easier way to do it.

https://davanum.wordpress.com/2014/03/17/generating-a-bitcoin-private-key-and-address/

http://pastebin.com/4Lmf25gK

I need it in autoit, because i can use only this language. And i want to mod/upgrade it. But i can not do that on another language.

My second idea is implement or convert python to autoit. But maybe it is a bad idea.

Edited by jesus40
Link to comment
Share on other sites

  • Developers

Well, When you say you are only able to do it in AutoIt3 then I am sure you have started the coding and have something to show ...right?
 

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

hello,
I need your help. I dont found a Bitcoin address generator written in autoit, and i really can not write it. I am a beginner, but i learning continously.

I found these codes, maybe can help:
python:
https://github.com/weex/addrgen

​well, if you can do

ssl = ctypes.cdll.LoadLibrary (ctypes.util.find_library ('ssl') or 'libeay32')

in AutoIt, I'd like to see that.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

i think i can do it with the help of wikipedia article. But i am not sure :) I try it without any code of other language.

point 0 is ok, that is random. But point 1.... I dont understand exactly how to do it............ Any idea?

 

How to create Bitcoin Address

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)

   0450863AD64A87AE8A2FE83C1AF1A8403CB53F53E486D8511DAD8A04887E5B23522CD470243453A299FA9E77237716103ABC11A1DF38855ED6F2EE187E9C582BA6

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

(note that below steps are the Base58Check encoding, which has multiple library options available implementing it)
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 stage 7 at the end of extended RIPEMD-160 hash from stage 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
Link to comment
Share on other sites

  • Developers

i think i can do it with the help of wikipedia article. But i am not sure :) I try it without any code of other language.

point 0 is ok, that is random. But point 1.... I dont understand exactly how to do it............ Any idea?

​Is there an AutoIt3 question in there or are you simply having no idea what it is that needs to be done at all?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

​Is there an AutoIt3 question in there or are you simply having no idea what it is that needs to be done at all?

Jos

I can make every point in autoit, but simply have no idea what is point two. So i dont know what is that, and how to do it with autoit.

 

Edited by jesus40
Link to comment
Share on other sites

  • Moderators

jesus40,

simply have no idea what is point two. So i dont know what is that, and how to do it with autoit.

Then I suggest that you find out what you want to do and come back with an AutoIt related question once you do know. Thread locked.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...