Skip to content

Simplify Nibbles type #4810

@MegaRedHand

Description

@MegaRedHand

Currently, our Nibbles type uses a Vec as underlying storage. Using a fixed-bytes array might simplify code. Now that we're moving to a path-based DB implementation, this will be important since we use paths for node indexing.

Apart from this, some of the methods in Nibbles are used for iterating the trie, which makes the internal nibbles implementation harder to understand or modify (see the path-based PR changes to see an example).

Metadata

Metadata

Assignees

No one assigned

    Labels

    L1Ethereum clienttech debtRefactors, cleanups, etc

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions