trie: rework and document key encoding
'encode' and 'decode' are meaningless because the code deals with three encodings. Document the encodings and give a name to each one.
Showing
- trie/encoding.go 50 additions, 64 deletionstrie/encoding.go
- trie/encoding_test.go 61 additions, 86 deletionstrie/encoding_test.go
- trie/hasher.go 1 addition, 1 deletiontrie/hasher.go
- trie/iterator.go 2 additions, 1 deletiontrie/iterator.go
- trie/node.go 2 additions, 2 deletionstrie/node.go
- trie/proof.go 2 additions, 2 deletionstrie/proof.go
- trie/trie.go 3 additions, 3 deletionstrie/trie.go
Loading
Please register or sign in to comment