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

    Class TrieNode

    A representation of an unidentified raw trie node.

    The node can be either (determined by the first bit): - a branch node - a leaf node

    In case of a branch node the contained data is: - left sub-node hash (32 bytes - 1 bit) - right sub-node hash (32 bytes)

    There are two kinds of leaf nodes (determined by the second bit) - Embedded value leaf nodes - Value hash leaf nodes

    Embedded value leaf nodes contain:

    • a length of the embedded value (last 6 bits of the first byte)
    • the value itself (padded with zeroes)

    Regular value leaf nodes contain:

    • a hash of the value
    Index

    Constructors

    Properties

    raw: Uint8Array = ...

    Exactly 512 bits / 64 bytes

    Methods