Why don't we just change to Byte-arrays for keys? Mandate that they always be
transfered as Hex strings and then they can be converted to byte-arrays
internally. Keeping them has hex strings internally just seems weird...

On Wed, 26 Apr 2000, hal at finney.org wrote:
> Adam writes:
> > I just want to clear something up.
> >
> > With StringKeys (the ones currently in use) is this true:
> >
> > AAAA is closer to ZZZ than AAAB?
> 
> Yes, although your question is worded a little awkwardly.  What you
> are really asking is, which is ZZZ closer to: AAAA or AAAB?  The answer,
> as you said, is the first one.  The first three letters are a "tie", and
> four the fourth letter the ZZZ string uses a binary zero value.  That
> zero is closer to A than to B.
> 
> Hal
> 
> _______________________________________________
> 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