diff --git a/ssz/merkle-proofs.md b/ssz/merkle-proofs.md index 6772026fe1..97a9f79e3a 100644 --- a/ssz/merkle-proofs.md +++ b/ssz/merkle-proofs.md @@ -11,7 +11,6 @@ - [Generalized Merkle tree index](#generalized-merkle-tree-index) - [SSZ object to index](#ssz-object-to-index) - [Helpers for generalized indices](#helpers-for-generalized-indices) - - [`concat_generalized_indices`](#concat_generalized_indices) - [`get_generalized_index_length`](#get_generalized_index_length) - [`get_generalized_index_bit`](#get_generalized_index_bit) - [`generalized_index_sibling`](#generalized_index_sibling) @@ -191,20 +190,6 @@ def get_generalized_index(typ: SSZType, path: Sequence[Union[int, SSZVariableNam _Usage note: functions outside this section should manipulate generalized indices using only functions inside this section. This is to make it easier for developers to implement generalized indices with underlying representations other than bigints._ -#### `concat_generalized_indices` - -```python -def concat_generalized_indices(*indices: GeneralizedIndex) -> GeneralizedIndex: - """ - Given generalized indices i1 for A -> B, i2 for B -> C .... i_n for Y -> Z, returns - the generalized index for A -> Z. - """ - o = GeneralizedIndex(1) - for i in indices: - o = GeneralizedIndex(o * get_power_of_two_floor(i) + (i - get_power_of_two_floor(i))) - return o -``` - #### `get_generalized_index_length` ```python