Jump to content
jesus40

Generate a bitcoin address and private key

Recommended Posts

jesus40

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

Share this post


Link to post
Share on other sites
jesus40

I just ask for help... Maybe it is a very easy task for somebody, or maybe somebody have a finished script. If you dont want or can not help, You can skip this topic.

thanks

Share this post


Link to post
Share on other sites
water

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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
jesus40

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

Share this post


Link to post
Share on other sites
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
argumentum

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.

Share this post


Link to post
Share on other sites
jesus40

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

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
jesus40

​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

Share this post


Link to post
Share on other sites
Melba23

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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×