dh question

Brad Fitzpatrick brad at danga.com
Tue Jun 7 16:08:47 PDT 2005


On Wed, 8 Jun 2005, Paul Crowley wrote:

> Brad Fitzpatrick wrote:
> > Which means it should be defined, right?  The different times this comes
> > up aren't purely implementor-only decisions... they affect the other
> > party.
>
> It's said "All integers are represented in big-endian signed two's
> complement, Base64 encoded" for a while now...

I'm blind.  :-)


> > I'll go with 2's complement MSB, then, if you add it to the spec.  Unless
> > that's silly and we can ignore negative numbers.
>
> It's kind-of silly, but it's a common format.  At least I know of two
> places where it's used - SPKI and Java.  Perl doesn't seem to have a way
> of converting between bytes and bigints.

Easy enough using pack and Math::BigIng->as_bin.

Thanks!  Back to work....

Brad


More information about the yadis mailing list