Post
Topic
Board Announcements (Altcoins)
Re: NXT :: descendant of Bitcoin - Updated Information
by
NxtChg
on 02/02/2014, 19:39:16 UTC
http://i.imgur.com/ocSGxIJ.png

The encoding and decoding is very simple and there is an example encoder given in the paper.

Don't use the format for strings outlined, however, as it assumes an 7-bit character set.  Instead encode strings and arbitrary buffers using a format similar to the storage of Pascal strings: a size integer, which uses the variable-length scheme above, followed by a string of bytes.  This would allow strings/buffers of any length.

Is it really necessary? How much is he gonna save, especially since he still rounds to bytes and doesn't use compression?

And messing with bits is even worse than dealing with endianness.

I think either compressed JSON or a simple binary format would be enough.