Skip to content

Instantly share code, notes, and snippets.

@gokulsan
Last active May 21, 2019 23:22
Show Gist options
  • Save gokulsan/511999b92e23d504fa96b80d0cce5206 to your computer and use it in GitHub Desktop.
Save gokulsan/511999b92e23d504fa96b80d0cce5206 to your computer and use it in GitHub Desktop.
The only purpose of RLP is to encode structure;
Encoding specific atomic data types (eg. strings, ints, floats) is left up to higher-order protocols
In Ethereum integers must be represented in big endian binary form with no leading zeroes
Thus making the integer value zero be equivalent to the empty byte array
https://ethereum.stackexchange.com/questions/30518/does-rlp-specify-integer-encoding?rq=1
Shared Nibble in the Extension Node
https://ethereum.stackexchange.com/questions/31920/what-is-the-shared-nibble-of-this-extension-node
Ethereum Compact Merkle Trie
Tries are an intuitive means of encoding associative data in a tree structure.
Unlike, say, a hash table, a trie structurally represents its keys.
It enables the efficient retrieval of all suffixes, given a partial key.
https://nervous.io/clojure/crypto/2018/04/04/clojure-evm-iii/
@gokulsan
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment