Bitcoin Forum
April 25, 2024, 01:08:33 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 3 »  All
  Print  
Author Topic: [ANN] Bitcoin URL handler  (Read 8536 times)
Alex Zee (OP)
Member
**
Offline Offline

Activity: 112
Merit: 10



View Profile WWW
June 10, 2011, 10:05:28 PM
Last edit: June 18, 2011, 07:55:41 AM by AlexZ
 #1

Fuck it.

BTC Monitor - systray price ticker
RipTalk.org - new Ripple forum
1714007313
Hero Member
*
Offline Offline

Posts: 1714007313

View Profile Personal Message (Offline)

Ignore
1714007313
Reply with quote  #2

1714007313
Report to moderator
1714007313
Hero Member
*
Offline Offline

Posts: 1714007313

View Profile Personal Message (Offline)

Ignore
1714007313
Reply with quote  #2

1714007313
Report to moderator
If you see garbage posts (off-topic, trolling, spam, no point, etc.), use the "report to moderator" links. All reports are investigated, though you will rarely be contacted about your reports.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714007313
Hero Member
*
Offline Offline

Posts: 1714007313

View Profile Personal Message (Offline)

Ignore
1714007313
Reply with quote  #2

1714007313
Report to moderator
1714007313
Hero Member
*
Offline Offline

Posts: 1714007313

View Profile Personal Message (Offline)

Ignore
1714007313
Reply with quote  #2

1714007313
Report to moderator
Garrett Burgwardt
Sr. Member
****
Offline Offline

Activity: 406
Merit: 256


View Profile
June 10, 2011, 10:19:23 PM
 #2

Source?
ISA
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
June 10, 2011, 10:32:50 PM
 #3

wow. testing.....
ISA
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
June 10, 2011, 10:44:45 PM
 #4

1) Edited Bitcoin.conf and added:

server=1
rpcconnect=SECRECT
rpcuser=SECRET_USER
rpcpassword=SECRECT_PASSWORD
rpcport=12345

2) Executed bitcoin_uri.exe and pressed ok.
No errors -> All seems to be fine


Result:
Firefox: Does not recognize the link ("Does not know how to open it"). I tried several restarts etc.

Chrome and IE9 have similar problems.
enmaku
Hero Member
*****
Offline Offline

Activity: 742
Merit: 500


View Profile
June 10, 2011, 10:54:30 PM
 #5

I am so installing this when I get home.
ISA
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
June 10, 2011, 10:57:20 PM
 #6


"Sorry, malformed URI. ....."

I'm running on a German Windows 7
ISA
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
June 10, 2011, 11:00:07 PM
 #7

Check if there is a registry key "bitcoin" under HKEY_CLASSES_ROOT.
Not there.
ISA
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
June 10, 2011, 11:01:49 PM
 #8

Well, obviously you need to use a correct URI, not a bunch of symbols I just typed  Grin
Haha. Ok works with a correct bitcoin address.

Man I'm on blind copy&paste. Don't forget that Smiley
foo
Sr. Member
****
Offline Offline

Activity: 409
Merit: 250



View Profile
June 10, 2011, 11:08:20 PM
 #9

Wrong URI format! Here's the proper one: https://en.bitcoin.it/wiki/URI_Scheme

I know this because Tyler knows this.
ISA
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
June 10, 2011, 11:17:02 PM
 #10

Aha. Probably the permissions problem. Are you running the program from under the Administrator account? At least to install, it needs to write into registry.

YES! That did do the trick.
Nice
Serge
Legendary
*
Offline Offline

Activity: 1050
Merit: 1000


View Profile
June 10, 2011, 11:20:41 PM
 #11

very cool, something like this should be implemented in the official client
ISA
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
June 10, 2011, 11:21:40 PM
 #12

Bitcoins sent!

Very nice.

It should start the Bitcoin client if it's not running...
Luke-Jr
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
June 11, 2011, 01:04:54 AM
 #13

This program doesn't comply with the Bitcoin: URI scheme, so won't work with most (any?) valid URIs...

I already wrote proper support for the original client a long time ago, but it hasn't been merged yet.
(The donation address for this is 19ut7h2sp9jKf5dpnK36FCPGu8L1cHnPSE)

It's also supported by mainline Spesmilo.

Vladimir
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1001


-


View Profile
June 11, 2011, 07:20:00 AM
Last edit: June 11, 2011, 07:31:54 AM by Vladimir
 #14

Bravo AlexZ,

  I wish we could get this into official client somehow. Let's get both URI schemes working concurrently. Anyone want to take bets on which URI scheme will be adopted by website operators if both are supported by official client?

Just compare:

1. bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=x4X7

and

2. bitcoin:/400/16rpY3LAf7kQFHzmMtB71eXTTTDLG5AWy3/

I'd say option 2 is a clear winner

P.S. Do not underestimate importance of decent URI handling. Edonkey's popularity and quick adoption to significant degree was due to its great edk2 URI scheme. Ask Jed if you do not believe me. I bet if we have this kind of URI handling both in windows and linux official client it will make bitcoin adoption to go much smoother.


-
Luke-Jr
Legendary
*
Offline Offline

Activity: 2576
Merit: 1186



View Profile
June 11, 2011, 07:37:23 AM
 #15

Of course option 2 is a winner when you're comparing two totally different things. Let's look at some REAL comparisons:

400 BTC (ie, yesterday)
Standard bitcoin: URI: bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=400x8
Vladimir's URI-like: bitcoin:/400/1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L/

400 mBTC (ie, today)
Standard bitcoin: URI: bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=400x5
Vladimir's URI-like: bitcoin:/0.004/1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L/

400 μBTC (ie, tomorrow A)
Standard bitcoin: URI: bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=400x2
Vladimir's URI-like: bitcoin:/0.000004/1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L/

400 TBC (ie, tomorrow B)
Standard bitcoin: URI: bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=x400x4
Vladimir's URI-like: bitcoin:/0.67108864/1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L/

400 Satoshis (ie, nerds?)
Standard bitcoin: URI: bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=400x0
Vladimir's URI-like: bitcoin:/0.00000004/1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L/

Keep in mind, no humans have to read URIs, just software. And Vladimir's thing doesn't even fit with the generic URI formats.
X-btc might be a contender with some work, though...

Vladimir
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1001


-


View Profile
June 11, 2011, 08:02:48 AM
Last edit: June 11, 2011, 08:41:26 AM by Vladimir
 #16

yea particularly this one

Luke-Jr: URI: bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=x400x4
Vladimir's URI-like: bitcoin://0.67108864/1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L/


how about comparing the real thing

give your answer to each of these:

http://forum.bitcoin.org/index.php?topic=5171.msg75505#msg75505

bitcoin:///19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp
bitcoin://0.02/19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp
bitcoin:///19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/OK+RFC
bitcoin:///19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp:Vladimir/OK+RFC
bitcoin://50.00/19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/Really+Cool+RFC
bitcoin://50.00/19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp:Vladimir/Really+Cool+RFC
bitcoin://50.00/19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/Vladimir:Really+Cool+RFC
bitcoin://0.0000001/19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp:Vladimir/Your+RFC+Sucks
bitcoin://100/19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp:Vladimir/I+will+pay+you+monthly?periodic=yes&period=monthly&howmany=12


Also I would like to note that there is no standard bitcoin URI. If you pushed it to the wiki it does not make it standard and you, Luke-Jr, is not a standard maker nor a sole authority on the matter!



-
generalunited
Newbie
*
Offline Offline

Activity: 14
Merit: 0


View Profile
June 11, 2011, 08:22:41 AM
 #17

1. bitcoin:1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=x4X7

and

2. bitcoin:/400/16rpY3LAf7kQFHzmMtB71eXTTTDLG5AWy3/

----


http://bit.coin.is/1NS17iag9jJgTHD1VXjvLCEnZuQ3rJED9L?amount=x4X7
or
http://bit.coin.is/400/16rpY3LAf7kQFHzmMtB71eXTTTDLG5AWy3

but i'll route both of them through the 'coin.is' domain

Vladimir
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1001


-


View Profile
June 11, 2011, 08:43:27 AM
 #18

Introducing some privately owned domain into decentralised currency URI scheme, whether standard or not, does not look very appealing.

Nice try with a community infiltration attack though...

-
Vladimir
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1001


-


View Profile
June 11, 2011, 09:28:47 AM
 #19

Here is the latest iteration, we could simply emulate http URI, including "userinfo" part

btc://amount:payee@address/message , where

amount:payee@,  :payee and /message are optional

examples:

btc://19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp
btc://0.02@19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp
btc://19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/OK+RFC
btc://0.00:Vladimir@19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/OK+RFC
btc://50.00@19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/Really+Cool+RFC
btc://50.00:Vladimir@19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/Really+Cool+RFC
btc://0.0000001:Vladimir@19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/Your+RFC+Sucks
btc://100:Vladimir/19bF4Xq2bJwVKzGmbq5pxmkgYkE1KnXngp/I+will+pay+you+monthly?periodic=yes&period=monthly&howmany=12

most existing URI handling code will work with this with minimal (if any) changes

-
Matt Corallo
Hero Member
*****
Offline Offline

Activity: 755
Merit: 515


View Profile
June 11, 2011, 03:09:01 PM
 #20

Why do people insist on reinventing the wheel?  The previous URI spec worked fine and was implemented in all clients in mainline except for the wx bitcoin client.  There is also a pull request that has been sitting in github for that format forever https://github.com/bitcoin/bitcoin/pull/182.  There is no advantage to this format over the old one, in fact, it makes it harder to read imho, and you can't specify a memo and not a name, as you can with the original, well-implemented one.  Additionally, adding periodic payments falls way outside of the scope of any URI spec commit.

Bitcoin Core, rust-lightning, http://bitcoinfibre.org etc.
PGP ID: 07DF 3E57 A548 CCFB 7530  7091 89BB B866 3E2E65CE
Pages: [1] 2 3 »  All
  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!