Page 1 of 1

URI Schemes

Posted: Wed Jul 09, 2014 5:25 pm
by phelix
biolizard89 wrote:
phelix wrote:
I suggest to use "namecoin:" for payments just like "bitcoin:" maybe with the addition that a name can be used instead of an address. This would be on the client side. And "nmc:" registered to NMControl for information display.
I would be concerned that using namecoin: and nmc: for different things would confuse users, which isn't a good thing when dealing with money. (Might be good to spin off a dedicated thread for that.)
nct: or nctrl: then?

Re: URI Schemes

Posted: Wed Jul 09, 2014 5:33 pm
by biolizard89
I would lean toward a single URI scheme for names, "nmc:", with a syntax for payments (both Bitcoin and Namecoin) as well as a syntax for other operations.

Examples:

nmc:id/jeremy --> show data for the name id/jeremy
nmc:id/jeremy/bitcoin --> send BTC to id/jeremy
nmc:id/jeremy/namecoin --> send NMC to id/jeremy
nmc:id/jeremy/xmpp --> send an XMPP IM to id/jeremy

The currency-specific URI scheme "namecoin:" would only accept addresses rather than names.

Re: URI Schemes

Posted: Thu Jul 10, 2014 5:39 am
by domob
biolizard89 wrote:I would lean toward a single URI scheme for names, "nmc:", with a syntax for payments (both Bitcoin and Namecoin) as well as a syntax for other operations.

Examples:

nmc:id/jeremy --> show data for the name id/jeremy
nmc:id/jeremy/bitcoin --> send BTC to id/jeremy
nmc:id/jeremy/namecoin --> send NMC to id/jeremy
nmc:id/jeremy/xmpp --> send an XMPP IM to id/jeremy

The currency-specific URI scheme "namecoin:" would only accept addresses rather than names.
I like these ideas.

Re: URI Schemes

Posted: Thu Jul 10, 2014 7:48 am
by tosh0
are we talking about RPC commands to namecontrol or url's that we can type on the browser and open namecontrol?

(ok, i see nmc: is enough for a browser to read it as another handle, so go ahead.)

i don't see problem with nmc for namecontrol and namecoin for the qt, just make any nmc:N12345 return namecoin:N12345 and open the qt, and any namecoin:name return nmc:name and open nmcontrol...

Re: URI Schemes

Posted: Thu Jul 10, 2014 11:48 am
by phelix
biolizard89 wrote:I would lean toward a single URI scheme for names, "nmc:", with a syntax for payments (both Bitcoin and Namecoin) as well as a syntax for other operations.

Examples:

nmc:id/jeremy --> show data for the name id/jeremy
nmc:id/jeremy/bitcoin --> send BTC to id/jeremy
nmc:id/jeremy/namecoin --> send NMC to id/jeremy
nmc:id/jeremy/xmpp --> send an XMPP IM to id/jeremy
domob wrote: I like these ideas.
Me, too.

The currency-specific URI scheme "namecoin:" would only accept addresses rather than names.
Why not names, too? Sendtoname is readily available?

nmc: goes to nmcontrol and namecoin: goes to the client? If you suggest anything else please elaborate.

Re: URI Schemes

Posted: Thu Jul 10, 2014 2:24 pm
by virtual_master
domob wrote:
biolizard89 wrote:I would lean toward a single URI scheme for names, "nmc:", with a syntax for payments (both Bitcoin and Namecoin) as well as a syntax for other operations.

Examples:

nmc:id/jeremy --> show data for the name id/jeremy
nmc:id/jeremy/bitcoin --> send BTC to id/jeremy
nmc:id/jeremy/namecoin --> send NMC to id/jeremy
nmc:id/jeremy/xmpp --> send an XMPP IM to id/jeremy

The currency-specific URI scheme "namecoin:" would only accept addresses rather than names.
I like these ideas.
+1

It looks like a good standardization proposal. Would be great for the Namecoin image to quickly recognize and use different Namecoin applications.

Re: URI Schemes

Posted: Fri Jul 11, 2014 10:54 am
by biolizard89
phelix wrote:
biolizard89 wrote:I would lean toward a single URI scheme for names, "nmc:", with a syntax for payments (both Bitcoin and Namecoin) as well as a syntax for other operations.

Examples:

nmc:id/jeremy --> show data for the name id/jeremy
nmc:id/jeremy/bitcoin --> send BTC to id/jeremy
nmc:id/jeremy/namecoin --> send NMC to id/jeremy
nmc:id/jeremy/xmpp --> send an XMPP IM to id/jeremy
domob wrote: I like these ideas.
Me, too.

The currency-specific URI scheme "namecoin:" would only accept addresses rather than names.
Why not names, too? Sendtoname is readily available?

nmc: goes to nmcontrol and namecoin: goes to the client? If you suggest anything else please elaborate.
My rationale for not having namecoin: use names is twofold: (1) an end user may be confused when nmc:id/jeremy and namecoin:id/jeremy do completely different things; when one of those two things is sending money, that's a significant issue. (2) Using nmc:id/jeremy/namecoin is consistent with nmc:id/jeremy/bitcoin; this makes things a little bit more user-friendly, and also a little bit easier to write scripts that handle multiple currencies.

Yes, nmc: would go to NMControl. NMControl would redirect nmc:id/jeremy/namecoin to the corresponding namecoin: URL for the actual address (which would be accepted by Namecoin-Qt), the same way it would redirect nmc:id/jeremy/bitcoin.

Basically, it's about consistency, and trying not to surprise the user.

Re: URI Schemes

Posted: Fri Mar 20, 2015 9:54 pm
by phelix
I am looking into this again.

How should a request look like to be redispatched to the system with data filled in?

I currently have this in mind:
nmc:id/winston/bitcoin:bitcoin --> dispatch to system as bitcoin:123asdf
nmc:id/winston/bitcoin: --> shorthand for the above
nmc:id/winston/email:mailto --> mailto:winston@smith.org