pub type GlobalIndex = Keccak256Output;Expand description
Represents an AggLayer global index as a 256-bit value (32 bytes).
The global index is a uint256 that encodes (from MSB to LSB):
- Top 160 bits (limbs 0-4): must be zero
- 32 bits (limb 5): mainnet flag (value = 1 for mainnet, 0 for rollup)
- 32 bits (limb 6): rollup index (must be 0 for mainnet deposits)
- 32 bits (limb 7): leaf index (deposit index in the local exit tree)
Bytes are stored in big-endian order, matching Solidity’s uint256 representation.
Aliased Type§
pub struct GlobalIndex(/* private fields */);