ssz
ssz copied to clipboard
Invalid gindex calculation
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
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.