Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: marcusaurelius on January 09, 2011, 03:23:02 PM



Title: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: marcusaurelius on January 09, 2011, 03:23:02 PM
http://qr.ma.eatgold.com/screenshot.jpg

We now have a QR-Scanning JS-Version and the Android App doesn't seem too far off.
This is a QR-Code Generator for Bitcoin-Addresses. Supports the bitcoin:URI and the x-btc scheme. Suggestions are highly appreciated. Use of the generator even more.

http://qr.ma.eatgold.com (http://qr.ma.eatgold.com)



[edit] NEW: Now you can specify the amount to be sent.

[edit]the current script is not intended for hotlinking. the pictures are stored, but this is a TEMPORARY solution, and this may change as soon as i find time to implement hotlinking in a permanent way. i stronglyl advise against hotlinking, but it is possible for the moment.


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: marcusaurelius on January 09, 2011, 03:31:08 PM
it is in there already.
i just see that the forum software resizing the code makes it less readable. generally works, but not perfect. will change this soon.

the generator output images scan fine though.


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: nrtr on January 09, 2011, 03:32:39 PM
You're missing a 'd' in 'address'.  ;)


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: hugolp on January 09, 2011, 03:34:51 PM
I have no idea how much information you can include in a 3D codebar, but, if possible, it would be interesting to being able to include the address and a quantity in the 3D bar, so with one scan you can get the address and the amount of bitcoins, so you just have to confirm the transfer in the screen (f.e.).


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: tcatm on January 09, 2011, 03:38:09 PM
I'd like to add that feature to js-remote (address + amount). Do we have a simple URI scheme that supports that, yet?


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: marcusaurelius on January 09, 2011, 03:43:36 PM
we have at least two competing uri schemes. the generator supports both.

but you are right, i will add a "send amount" feature.

@hugo: they are 2d barcodes, not 3d. you can store A LOT in there. QR supports up to 4,296 characters. The codes become bigger, though.


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: hugolp on January 09, 2011, 04:27:18 PM
@hugo: they are 2d barcodes, not 3d.

Correct. :P

Quote
you can store A LOT in there. QR supports up to 4,296 characters. The codes become bigger, though.

Is it possible to develop a system or protocol where the reader recognizes automatically if there is only the address or there is an address plus an amount of bitcoins?

EDIT: Maybe something automatic in the URI like: bitcoin://askfj23ljsfd343ljklsfj393elksjdf?pay=30 ?


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: caveden on January 09, 2011, 04:35:14 PM
Nice!

It would also be cool if we could add a short description text to it, where the merchant could identify himself and maybe describe the transaction. This could be useful for controlling how you spend your coins.


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: slush on January 09, 2011, 04:44:07 PM
Discussion about how to encode wallet & parameters to string: http://bitcointalk.org/index.php?topic=55.0 (http://bitcointalk.org/index.php?topic=55.0)


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: marcusaurelius on January 09, 2011, 05:09:10 PM
so the amount-bit is live. enter the amount you want to be sent to the adress and it is encoded to qr.

also the codes can now be used as your forum profile picture without resizing, that is IF you adhere to either RAW or bitcoin:URI. Unfortunately codes in xbtc get larger than the 80x80 size the forum supports. And resizing is a really bad idea, as it hurts readability.

description (as per the two specifications) is next on my agenda.

@hugo: the whole idea of this URI scheme is that this is possible. but that is up to the reader software. this is doing the text->qr part, the reader software needs to do qr->text. and sorry to correct you again, but it is not bitcoin://xxxxxxxxxxxxxxxx. It is bitcoin:xxxxxxxxxxxxxxxxxxx as this is a URI, not a hierarchical URL.

@slush: yes, i am basing my work on this. but as had been said there, we can discuss all month, somebody needs to implement it.

for your reference, the x-btc specification is here: http://pastebin.com/VsBbmXQx


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: tcatm on January 09, 2011, 06:27:07 PM
I think this is about adoption. If you start using xbtc that would count in its favor.

I personally would prefer the shortest possible, as this keeps the qrcodes small. x-btc mandates an action to be specified ("store" or "send" currently) and also mandates the "addr=" part in front of the adress, both which I consider to be redundant.

I like the simplicity of bitcoin:xxxxxxxxxxxxx plus very much approve of its accessibility. Should someone from the outside happen to see such a uri, the protocol name already gives a description. A quick google search should then do the rest. x-btc sounds much more cryptic, the chance that s/1 gooogles that out of curiosity are much slimmer. Also, very likely, what s/he will find are mostly technical specifications. Not a good introduction to bitcoin.

Yep, having bitcoin: infront of the adress seems more accessible. Maybe we can work on a "new" URI scheme using ideas from both?


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: marcusaurelius on January 09, 2011, 06:48:24 PM
lets say it that way, as we are the only two people at the moment USING the URI-scheme in publicly available software (as far as i know) we can de facto determine which standard is used. if that is a good idea remains to be seen.

personally, i'd really like another shot. and better do it now, then after widespread adoption. right?


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: davux on January 09, 2011, 09:07:26 PM
I love it, especially the fact that you can stick in a bitcoin logo. Would you add the possibility to upload a custom image instead of the default one?

Oh, and I prefer "bitcoin:" or "x-bitcoin:" as URI scheme. There's no need to limit it to 3 characters, w'r nt usng MS-DOS flnms anymr.


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: tcatm on January 09, 2011, 11:06:47 PM
edit: Post moved to https://en.bitcoin.it/wiki/Bitcoin-scheme


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: davux on January 09, 2011, 11:12:25 PM
I propose a scheme like this:

Other threads are discussing the details of an URI scheme. Let's move the discussion to them, in order to preserve this thread's initial topic.


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: fabianhjr on January 09, 2011, 11:21:12 PM
I love the error correction parts which enables you to put a bitcoin in the middle. xD


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: Anonymous on January 10, 2011, 02:55:29 AM
http://bitcoin.me/noagenda (http://bitcoin.me/noagenda)

You can buy your personalised qr address at bitcoin.me and redirect it to your qr code. This means you can have a human readable url for the cost of a few btc. Just copy and paste the qr address into the redirect field and you have your very own easy to remember way for people to find you.


Which is easier to say ?


http://qr.ma.eatgold.com/temp/bitcoin18vSVcS8upH34qsFvshwjxHcxH2gNnusff.png

or

bitcoin.me/noagenda


 ;)


http://bitcoin.me (http://bitcoin.me)


Title: Re: Bitcoin-Adress to QR-Code [support for URI-Schemes]
Post by: theymos on January 10, 2011, 07:31:48 AM
also the codes can now be used as your forum profile picture without resizing, that is IF you adhere to either RAW or bitcoin:URI. Unfortunately codes in xbtc get larger than the 80x80 size the forum supports. And resizing is a really bad idea, as it hurts readability.

Actions are optional in x-btc, and you can use public key hashes instead of addresses in the current version (https://en.bitcoin.it/wiki/X-btc). Addresses can be losslessly converted to (http://blockexplorer.com/q/addresstohash) and from (http://blockexplorer.com/q/hashtoaddress) public key hashes.

x-btc:addr=17Dk1cugCynTaNdmQihF7tproJgyKyWiwr;store
becomes
x-btc:hash=RDmmVdBt99QUY87vTlxY4K4aX1c;
which is even smaller than
bitcoin:17Dk1cugCynTaNdmQihF7tproJgyKyWiwr

Oh, and I prefer "bitcoin:" or "x-bitcoin:" as URI scheme. There's no need to limit it to 3 characters, w'r nt usng MS-DOS flnms anymr.

This sort of size issue is exactly the reason why a short name was chosen. QR codes also have a relatively small maximum size.


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: em3rgentOrdr on January 10, 2011, 07:44:42 AM
Great Job!  I just used this generator to update my profile pic and sent the developer a bitcoin!


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: marcusaurelius on January 10, 2011, 08:26:14 AM
Just copy and paste the qr address into the redirect field and you have your very own easy to remember way for people to

Ehhh, you shouldn't hotlink the qrcode you get. Current script wipes the generated codes after 48hrs. That is why the image is saved in a directory called "temp"!!

Perhaps I'll change this later, but at the moment I strongly advise AGAINST this. You'll spend btc to redirect to a nonexisting picture.

Sorry if s/1 already did this, but I clearly marked the URL as temporary.

[edit]i changed the script to not wipe pictures anymore. however, the current script was never intended for hotlinking. this is a TEMPORARY solution, and this may change as soon as i find time to implement hotlinking in a permanent way. so i still advise against hotlinking, but it is possible now.


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: Anonymous on January 10, 2011, 10:17:01 AM
Just copy and paste the qr address into the redirect field and you have your very own easy to remember way for people to

Ehhh, you shouldn't hotlink the qrcode you get. Current script wipes the generated codes after 48hrs. That is why the image is saved in a directory called "temp"!!

Perhaps I'll change this later, but at the moment I strongly advise AGAINST this. You'll spend btc to redirect to a nonexisting picture.

Sorry if s/1 already did this, but I clearly marked the URL as temporary.


The idea is better than the execution. So any qrcode made will be useless in 2 days ?

 :P


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: marcusaurelius on January 10, 2011, 10:25:54 AM
Quote
So any qrcode made will be useless in 2 days ?

as your signature clearly proves: NO.

download the picture and you are totally fine.

hotlinking is on my agenda, it just doesn't work right now.

[edit]i changed the script to not wipe pictures anymore. however, the current script was never intended for hotlinking. this is a TEMPORARY solution, and this may change as soon as i find time to implement hotlinking in a permanent way. so i still advise against hotlinking, but it is possible now.


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: Anonymous on January 10, 2011, 12:39:55 PM
Quote
So any qrcode made will be useless in 2 days ?

as your signature clearly proves: NO.

download the picture and you are totally fine.

hotlinking is on my agenda, it just doesn't work right now.

[edit]i changed the script to not wipe pictures anymore. however, the current script was never intended for hotlinking. this is a TEMPORARY solution, and this may change as soon as i find time to implement hotlinking in a permanent way. so i still advise against hotlinking, but it is possible now.


I can understand that.


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: davux on January 10, 2011, 08:03:57 PM
As a related note, the python-bitcoin module (http://gitorious.org/python-bitcoin/) now also features a qrCode() method on Address objects (requires the python-qrencode module to be installed).


Title: Re: Bitcoin-Address to QR-Code [support for URI-Schemes]
Post by: Stephen Gornick on September 01, 2011, 09:21:32 PM
Wolfram Alpha now has a raw QR code generator:
  http://www.wolframalpha.com
 simply search for the bitcoin address and append the words "qr code"
e.g.,
 1Kh1nWAs2pULBFLXyZnyUJVkpYTZMMtASY qr code