To understand the code, you must know that the RLP spec has some
peculiarities when encoding integers:
1) The zero value must be encoded as an empty list
2) Values below 128 are encoded as a single byte
3) Vaues above 128 must be encoded with the minimum number of bytes
possible.
To understand the code, you must know that the RLP spec has some peculiarities when encoding integers:
1) The zero value must be encoded as an empty list 2) Values below 128 are encoded as a single byte 3) Vaues above 128 must be encoded with the minimum number of bytes possible.