Bitcoin Forum
May 26, 2024, 07:58:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to Extract Bitcoin Addresses ??  (Read 712 times)
apoorvlathey (OP)
Hero Member
*****
Offline Offline

Activity: 1162
Merit: 547


CryptoTalk.Org - Get Paid for every Post!


View Profile WWW
April 06, 2016, 07:15:34 AM
 #1

I want a javascript (.js) that can find the Valid Bitcoin Addresses from a piece of text.
This might help :

https://github.com/achow101/BitcointalkAccountPricer/blob/master/src/com/achow101/bctalkaccountpricer/server/Address.java

It is the GitHub directory of http://www.bctalkaccountpricer.info . This java file does the same task that i want.
The only problem is that i want that it should be a .js script. Can anyone help me in achieving this ?

tyz
Legendary
*
Offline Offline

Activity: 3360
Merit: 1531



View Profile
April 06, 2016, 11:25:42 AM
 #2

Are you familiar with regular expressions? If so, you can find the solution on this[1] post on Stackoverflow. I used it myself some time ago and it worked fine.

[1] http://stackoverflow.com/questions/21683680/regex-to-match-bitcoin-addresses
bitdumper
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250

One world One currency, Bitcoin.


View Profile
April 09, 2016, 08:59:43 AM
 #3

You can use https://github.com/trapp/brainwallet to understand how address generation works,  but be aware that it is vulnerable that's why original Brainwallet website was shut down.
For production version use bip32 based https://bip32jp.github.io/english/.

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!