docs: function getProof(index, layers) {
    let i = index;
    const proof = layers.reduce((current, layer) => {
      const pair = getPair(i, layer);
      if (pair) {
        current.push(pair);
      }
      i = Math.floor(i / 2); // finds the index of the parent of the current node
      return current;
    }, []);
    return proof;
  }