On Sat, 06 May 2000, Bill Trost wrote:
> Oskar Sandberg writes:
>     I think it is fair to allow for zeros at the front of the value to
>     be cut off.
> 
> What business does a node have making modifications to the ID generated
> by a node?  All the UniqueID is being used for is a comparison value.
> There is no point in converting the ID to a number, only to convert it
> back to characters when the next packet is sent.  This is especially
> relevant to implementations that don't support numbers long enough to
> contain a UniqueID (like gcc on the i386).

The UniqueID is a value. It has always been a value. Just because I was clumsy
when I wrote that part in Liberator (I think it only happens if you don't have
a dev/urandom also, since it has never happened to me), doesn't change the fact
that it is a value. 

If you want to change it to a string, then we can discuss that, but as of now
it is a value.

> There's no reason to treat the UniqueID as anything other than a string
> of characters, and no reason for the protocol to arbitrarily place
> limits on or require conversions of that string.
> 
>     With the changes I'm making now and since we have to change the
>     protocol for crypto anyways, I'm going to make all numbers hex
>     strings (as was decided in the discussion before iirc).
> 
> Do you mean to say that "Depth" will be hex instead of decimal?  I
> didn't think that discussion had reached any real conclusion.  It sounds
> like a gratuitous change to the protocol to me.  Currently, the only
> data types are character strings (UniqueID's, addresses, and keys) and
> decimal integers (Depth and Hops).

What exactly are the arguments against using hex? It is easier and faster to
convert, and more compact. I didn't see any arguments against it, which is why
I assumed no one would care.

And you are still wrong about the UniqueID. You may think it should be a
string, but making it so is no less a change of the protocol then making
numerical fields hex rather then decimal.

> 
>     On Sat, 06 May 2000, Bill Trost wrote:
>     >         Recieved message 'e7cc6d5223fdc8a' expected '0e7cc6d5223fdc8a'
> 
> _______________________________________________
> Freenet-dev mailing list
> Freenet-dev at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/freenet-dev
-- 

Oskar Sandberg

md98-osa at nada.kth.se

#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to