ssz icon indicating copy to clipboard operation
ssz copied to clipboard

Invalid gindex calculation

Open wemeetagain opened this issue 1 year ago • 2 comments

Describe the bug

import {ssz} from "@lodestar/types";

const {BeaconState} = ssz.phase0;
console.log(
  BeaconState.getPathInfo(["validators", 0, "activationEpoch"]).gindex === BeaconState.getPathInfo(["validators", 0, "pubkey"]).gindex
);
// true

Expected behavior

false

wemeetagain avatar Mar 09 '23 14:03 wemeetagain

Currently running into this - how do I calculate the gindices of these fields manually?

Trying to generate a merkle proof of these fields, but can't do so if the gindices are the same for the Validator container, as well as all of the fields within it.

ratankaliani avatar Apr 22 '23 01:04 ratankaliani