Bitcoin Forum
January 19, 2019, 06:15:29 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Light program/script to generate addresses and QR code conversion?  (Read 48 times)
GamerSky
Jr. Member
*
Offline Offline

Activity: 46
Merit: 7


View Profile
February 05, 2018, 08:22:35 PM
 #1

Is there some light program/script that allows to generate bitcoin addresses, as well as converting address/private key to/from QR code (image file), and it'll be awesome if it supports mini private key format as well.
Ideally I'm looking for libraries to use in my project, but if they're stand alone CLI I can still manage to use them.
1547921729
Hero Member
*
Offline Offline

Posts: 1547921729

View Profile Personal Message (Offline)

Ignore
1547921729
Reply with quote  #2

1547921729
Report to moderator
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1547921729
Hero Member
*
Offline Offline

Posts: 1547921729

View Profile Personal Message (Offline)

Ignore
1547921729
Reply with quote  #2

1547921729
Report to moderator
1547921729
Hero Member
*
Offline Offline

Posts: 1547921729

View Profile Personal Message (Offline)

Ignore
1547921729
Reply with quote  #2

1547921729
Report to moderator
LoyceV
Legendary
*
Online Online

Activity: 1372
Merit: 2629


Self-made Legendary!


View Profile WWW
February 05, 2018, 09:51:50 PM
 #2

Is there some light program/script that allows to generate bitcoin addresses, as well as converting address/private key to/from QR code (image file), and it'll be awesome if it supports mini private key format as well.
Ideally I'm looking for libraries to use in my project, but if they're stand alone CLI I can still manage to use them.
A year ago, I've been playing around with miniprivatekey.py, bitcoin-tool and qrencode. I used this to search for mini private keys with vanity addresses.
Combined together, these 3 programs can do most of what you're looking for.

Update: I think I made up the name "miniprivatekey.py", so it's not helping you. I used this script. The rest of the programs can easily be found.

Note: I haven't used this for anything holding actual funds. I'll leave it up to you to make sure it's secure and random enough.

GamerSky
Jr. Member
*
Offline Offline

Activity: 46
Merit: 7


View Profile
February 06, 2018, 06:29:25 AM
 #3

Is there some light program/script that allows to generate bitcoin addresses, as well as converting address/private key to/from QR code (image file), and it'll be awesome if it supports mini private key format as well.
Ideally I'm looking for libraries to use in my project, but if they're stand alone CLI I can still manage to use them.
A year ago, I've been playing around with miniprivatekey.py, bitcoin-tool and qrencode. I used this to search for mini private keys with vanity addresses.
Combined together, these 3 programs can do most of what you're looking for.

Update: I think I made up the name "miniprivatekey.py", so it's not helping you. I used this script. The rest of the programs can easily be found.

Note: I haven't used this for anything holding actual funds. I'll leave it up to you to make sure it's secure and random enough.

Thanks for the links, I've seen that python script somewhere else before, but they said it's not secure since Python doesn't use a secure random number generator.
I'll be looking into the bitcoin-tool stuff when I'm back from work, but for the qrencode thing, how are bitcoin address/pubkey/privkey used in them? like do they simply serialize the bytes? no special schema or something? how do qrcode readers deal with them when importing? It'll be awesome if you have some 100 page manual or proper documentation link for it since this is going to be part of a project I'm working on.
LoyceV
Legendary
*
Online Online

Activity: 1372
Merit: 2629


Self-made Legendary!


View Profile WWW
February 06, 2018, 07:01:14 AM
 #4

~ for the qrencode thing, how are bitcoin address/pubkey/privkey used in them? like do they simply serialize the bytes? no special schema or something? how do qrcode readers deal with them when importing? It'll be awesome if you have some 100 page manual or proper documentation link for it since this is going to be part of a project I'm working on.
QR-codes convert to text, that's it. Unless you need to know how it works exactly internally.
You can adjust the error tolerance, for instance if you want to be able to put a Bitcoin logo in it.
The man page isn't that long.

From my cheat sheet:
Code:
# Make QR code with 7% error tolerance
qrencode -t png -o file.png -s 10 'private key here'

# Make QR code with 25% error tolerance (preferred option!)
qrencode -t png -o file.png -s 10 -l Q 'private key here'

# Make QR code with 30% error tolerance
qrencode -t png -o file.png -s 10 -l H 'private key here'

Example with 25% error tolerance used for the logo:

Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!