Function keyToPath

  • Returns the binary representation of a key. For each key it is possible to obtain an array of 256 padded bits.

    Parameters

    • key: string | bigint

      The key of a tree entry.

    Returns number[]

    The relative array of bits.