Bitcoin Forum
November 09, 2024, 05:47:30 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Request for Comments: Adopt "bitcoin" as the Bitcoin URI scheme  (Read 7723 times)
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 22, 2010, 02:31:47 AM
 #1

Friends,

As discussed at http://bitcointalk.org/index.php?topic=55.msg23464#msg23464, Bitcoin needs a URI scheme.

<PROPOSAL:>

I propose that Bitcoin's URI scheme be "bitcoin". I also propose that this matter be left open through the end of 2010 for comments and discussion.

</PROPOSAL>

Background:

A "URI scheme" is an extremely simple thing. RFC 3986 (http://tools.ietf.org/html/rfc3986#page-17) defines a URI Scheme in ABNF as

scheme      = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )

IANA maintains the official registry of (officially registered) URI schemes. The current list is at http://www.iana.org/assignments/uri-schemes.html.

BCP35 (http://tools.ietf.org/html/bcp35) lays out the criteria and process for officially registering a URI scheme with IANA. I'll cheer the day when that happens. Meanwhile, looking at the IANA registry of current official URI schemes (http://www.iana.org/assignments/uri-schemes.html) immediately shows that there are many familiar ones in widespread use that are not "officially registered", such as magnet:, ed2k: skype:, callto:, aim:, freenet: and so on.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
Anonymous
Guest

November 22, 2010, 03:36:48 AM
 #2

+10

this seems to be an acceptable standard.
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2301


Chief Scientist


View Profile WWW
November 28, 2010, 03:52:14 PM
 #3

So... 8 years ago some bittorrent folks came up with the magnet: URI scheme.
And yet I don't run across many magnet links as I browse the web.

As I browse the web I run into exactly three URI schemes:  http, https, and mailto.

I think a bitcoin mime type will be easier to implement and is likely to be more successful.

How often do you get the chance to work on a potentially world-changing project?
ribuck
Donator
Hero Member
*
Offline Offline

Activity: 826
Merit: 1060


View Profile
November 28, 2010, 05:38:35 PM
 #4

As I browse the web I run into exactly three URI schemes:  http, https, and mailto.

Hey, you forgot about FTP!

And point your Firefox at this one:
gopher://gopher.docfile.org/1/world/monitoring/uptime

But, flippancy aside, I take your point.
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1596
Merit: 1100


View Profile
November 28, 2010, 07:02:28 PM
 #5

So... 8 years ago some bittorrent folks came up with the magnet: URI scheme.
And yet I don't run across many magnet links as I browse the web.

As I browse the web I run into exactly three URI schemes:  http, https, and mailto.

I agree that those three URI schemes are very popular, but I do run into magnet links all the time on torrent sites.  And all major torrent software does support magnet links.

Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Cdecker
Hero Member
*****
Offline Offline

Activity: 489
Merit: 505



View Profile WWW
November 28, 2010, 07:55:34 PM
 #6

Not to mention the ed2k links on filesharing sites. I guess all these schemas have a right to exist in their communities and sometimes a schema becomes ubiquitous. As for the Mime idea, it sounds a lot like the VCF cards that were meant to be used to exchange contact information but they are rarely seen today, whereas microformats can be found all over the web.

So +1 on the bitcoin uri schema.

Want to see what developers are chatting about? http://bitcoinstats.com/irc/bitcoin-dev/logs/
Bitcoin-OTC Rating
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 28, 2010, 09:08:30 PM
 #7

@AdrianAtari: Yes, we should be discussing how Bitcoin handles the URI scheme. But that's a separate discussion Smiley

@Gavin: I don't see the sense of a Bitcoin MIME type. A URI scheme describes a resource. A MIME type binds a document type to a handler. Implementing a "click to send Bitcoins" capability using a MIME type would require that the website on which the payment link was embedded send a new document to the client browser. Seems needlessly complicated to me.

See also the discussion at http://bitcointalk.org/index.php?topic=1840.msg24927#msg24927 for how to register URI scheme handlers, at least on Windows systems.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
zipslack
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
November 29, 2010, 05:32:12 PM
 #8

I propose that Bitcoin's URI scheme be "bitcoin".

I vote yes.
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652
Merit: 2301


Chief Scientist


View Profile WWW
November 29, 2010, 09:07:51 PM
 #9

@Gavin: I don't see the sense of a Bitcoin MIME type. A URI scheme describes a resource. A MIME type binds a document type to a handler. Implementing a "click to send Bitcoins" capability using a MIME type would require that the website on which the payment link was embedded send a new document to the client browser. Seems needlessly complicated to me.
From the previous thread:
Quote
But a bitcoin: URI has problems, too:
 1. It is hard to implement-- every browser has a different way of registering protocol handlers.
 2. If you don't have the protocol handler installed, clicking on the link doesn't give you any help on what to do to make it work.  (try it here)
 3. Looks like some software (like this forum) don't like bitcoin URIs: Donate to the Faucet (that URI is bitcoin:15VjRaDX9zpbA8LVnbrCAFzrVzN7ixHNsC, the forum software is truncating it and adding http://).

Implementing something that won't even work on our own forums would be a bad idea, in my humble opinion.

How often do you get the chance to work on a potentially world-changing project?
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
November 30, 2010, 12:54:52 PM
 #10

@Gavin:

Your #2 objection is right on. Not much to say on that score.

To #3... well, that's problematic. Two items: Is that a use case that demands heavy attention (in comparison to embedding links on pages where the page owner has full control of the rendered HTML)? Also, here's a link to an SMF mod to handle ed2k: links: http://mods.simplemachines.org/index.php?mod=96

On #1 at least for Windows and Mac OS X I've determined this is not a per-browser setting but can be done at the OS level.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
Bruce Wagner
Sr. Member
****
Offline Offline

Activity: 336
Merit: 252


View Profile
December 04, 2010, 07:35:39 PM
 #11

Questions.

1.  Why not have both?   The market will decide which one people choose to use most.  One might be used more at first, then later as browsers are updated, site owners might later switch to the other.   But....  Are they mutually exclusive??

2.  What's stopping us?   Let's just implement them BOTH immediately.   We obviously have the knowledge and expertise to get the job done.   Let's just get the job done already.
kiba
Legendary
*
Offline Offline

Activity: 980
Merit: 1020


View Profile
December 04, 2010, 07:45:41 PM
 #12

2.  What's stopping us?   Let's just implement them BOTH immediately.   We obviously have the knowledge and expertise to get the job done.   Let's just get the job done already.


For some reason, we lack programming manpower.

Nobody is doing an android client, for example.

Bruce Wagner
Sr. Member
****
Offline Offline

Activity: 336
Merit: 252


View Profile
December 04, 2010, 08:20:23 PM
 #13

Gavin and Mike...   You've both already done lots of research and put lots of thought into each of the two methods.    What more would it take to simply implement them?   Is it simply a matter of agreeing on what it should look like, how it should function, etc...  then create the standard...   then submit it to...?    What's the roadblock at this point -- with each of the methods, if there is one?
mikegogulski (OP)
Sr. Member
****
Offline Offline

Activity: 360
Merit: 250



View Profile WWW
December 07, 2010, 06:46:12 AM
 #14

Well, what's stopping me is that I don't have the necessary expertise with C++ (which, unimportantly, I consider an atrocious language) to implement either handler type in Bitcion. I've also got no experience with Mac OS X programming, or with programming for the Linux desktop environment.

That leaves me only able to do the NSIS scripting for installing the bitcoin handler on Windows. I haven't tested it, but this oughtta work:

Code:
  DetailPrint "Registering Bitcoin URI Handler"
  DeleteRegKey HKCR "bitcoin"
  WriteRegStr HKCR "bitcoin" "" "URL:bitcoin"
  WriteRegStr HKCR "bitcoin" "URL Protocol" ""
  WriteRegStr HKCR "bitcoin\DefaultIcon" "" "$INSTDIR\bitcoin.exe"
  WriteRegStr HKCR "bitcoin\shell" "" ""
  WriteRegStr HKCR "bitcoin\shell\Open" "" ""
  WriteRegStr HKCR "bitcoin\shell\Open\command" "" "$INSTDIR\bitcoin.exe --protocolhandler=%1"

The "--protocolhandler=%1" bit would need consideration.

FREE ROSS ULBRICHT, allegedly one of the Dread Pirates Roberts of the Silk Road
konaya
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
December 07, 2010, 08:05:03 PM
 #15

I vote yes to a Bitcoin URI. The only reservation I have is a minor one: are we sure that this economic system will be called "bitcoin" forever? IMHO, for that reason alone a more generic (like "payto:", similar to "mailto:") or for that matter a more obscure (like "x-btc:") URI name would be better.

The MIME type idea is good. Not for describing payment addresses; for that, a MIME type is quite a crappy idea indeed, and a URI scheme is more suitable. But eventually, we will want to develop a simple scripting language for recurring payments (see my other post), and that would benefit from having its very own MIME type.
ribuck
Donator
Hero Member
*
Offline Offline

Activity: 826
Merit: 1060


View Profile
December 07, 2010, 08:53:54 PM
 #16

The only reservation I have is a minor one: are we sure that this economic system will be called "bitcoin" forever?

If the economic system has a different name, then "bitcoin:" will serve as a generic identifier like "mailto:".
konaya
Newbie
*
Offline Offline

Activity: 33
Merit: 0


View Profile
December 08, 2010, 03:57:26 PM
 #17

The only reservation I have is a minor one: are we sure that this economic system will be called "bitcoin" forever?

If the economic system has a different name, then "bitcoin:" will serve as a generic identifier like "mailto:".

So wouldn't it be better to have a more generic name on a generic identifier?
ribuck
Donator
Hero Member
*
Offline Offline

Activity: 826
Merit: 1060


View Profile
December 08, 2010, 04:37:54 PM
 #18

So wouldn't it be better to have a more generic name on a generic identifier?

What's more generic than bitcoin? Coins represented by digital bits.
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!