Author

Topic: Light program/script to generate addresses and QR code conversion? (Read 179 times)

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
~ 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:
jr. member
Activity: 44
Merit: 7
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.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
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.
jr. member
Activity: 44
Merit: 7
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.
Jump to: