github.com/karalabe/go-ethereum@v0.8.5/rlp/doc.go (about) 1 /* 2 Package rlp implements the RLP serialization format. 3 4 The purpose of RLP (Recursive Linear Prefix) qis to encode arbitrarily 5 nested arrays of binary data, and RLP is the main encoding method used 6 to serialize objects in Ethereum. The only purpose of RLP is to encode 7 structure; encoding specific atomic data types (eg. strings, ints, 8 floats) is left up to higher-order protocols; in Ethereum integers 9 must be represented in big endian binary form with no leading zeroes 10 (thus making the integer value zero be equivalent to the empty byte 11 array). 12 13 RLP values are distinguished by a type tag. The type tag precedes the 14 value in the input stream and defines the size and kind of the bytes 15 that follow. 16 */ 17 package rlp