Skip to content

Commit

Permalink
trie: improve raw nodes comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Sep 29, 2024
1 parent b24b554 commit 8991e18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/trie/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ export type TrieNode = BranchNode | ExtensionNode | LeafNode

export type Nibbles = number[]

// [ encodedPath, key ]
// Raw nodes as specified in the MPT spec
// To learn more: https://ethereum.org/en/developers/docs/data-structures-and-encoding/patricia-merkle-trie/#optimization
export type RawExtensionNode = [Uint8Array, Uint8Array]

// [ encodedPath, value ]
export type RawLeafNode = [Uint8Array, Uint8Array]

// Branch and extension nodes might store
Expand Down

0 comments on commit 8991e18

Please sign in to comment.