Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: da2ce7 on April 21, 2011, 04:26:39 AM



Title: [Poll] URI scheme - Base/Human units + Encoding
Post by: da2ce7 on April 21, 2011, 04:26:39 AM
Hex Encoding:

Base Units: 1BTC = 5F5E100
Human Units: 0.00000001BTC = 1 / 5F5E100

Decimal Encoding:

Base Units:  1BTC = 100000000
Human Units: 0.00000001BTC = 0.00000001

Comments?


Title: Re: [Poll] URI scheme - Base/Human units + Encoding
Post by: phelix on April 21, 2011, 06:57:19 AM
Hi!

could you give examples how it would look like? And maybe what advanteges there are with each variant (length?).

cheers


Title: Re: [Poll] URI scheme - Base/Human units + Encoding
Post by: da2ce7 on April 21, 2011, 07:12:00 AM
Hi!

could you give examples how it would look like? And maybe what advanteges there are with each variant (length?).

cheers

sure,

Hex encoding is good if you want to keep the length down.  It also can be easer for computers to phrase.
Decimal Encoding is good because user can directly read the bitcoin amount from the address, with out needing to convert the encoding.

eg. 5F5E100 = 100000000   -  100000000  is easier for a human (unless you are used to hex numbers)

Base units are better for computers to read and use,  as there are floating-point rounding issues.
Human units are easer for Humans to read.

eg 1 BTC = 100000000 base units.  1 BTC is more simple for a human.


Overall base units encoded in hex would be the most standards compliment and technically the best solution.  It is easy for a computer, hard for an human. (Without the use of software)


Title: Re: [Poll] URI scheme - Base/Human units + Encoding
Post by: BitterTea on April 21, 2011, 02:44:40 PM
I still don't see a problem with one URI scheme that can handle all of the above, which is the one semi-finalized and implemented by Luke-Jr.