Typeberry by Fluffy Labs - v0.4.0
    Preparing search index...

    Class LeafNode

    A leaf node view of the underlying raw trie node.

    +---------------------------------------------------------------+ | Embedded value leaf | +----+----------+-------------------+---------------------------+ | BL | V_len | Key | 0-padded value (V_len) |

    2b (6 bits) (31 bytes) (32 bytes)
    10 000111 deadbeef... 0123456789abcdef...
    +---------------------------------------------------------------+
    Value hash leaf
    +----+----------+-------------------+---------------------------+
    BL zero Key Value hash
    ---- ---------- ------------------- ---------------------------
    11 000000 deadbeef... deadbeef...
    +---------------------------------------------------------------+
    Index

    Constructors

    Properties

    node: TrieNode

    Methods

    • Get the byte length of embedded value.

      Note in case this node only contains hash this is going to be 0.

      Returns number