Update specs/light_client/merkle_proofs.md

Co-Authored-By: Diederik Loerakker <proto@protolambda.com>
This commit is contained in:
vbuterin 2019-08-02 09:43:24 -04:00 committed by GitHub
parent 0a874528a8
commit 845daf5b1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def chunk_count(typ: SSZType) -> int:
def get_item_position(typ: SSZType, index: Union[int, str]) -> Tuple[int, int, int]: def get_item_position(typ: SSZType, index: Union[int, str]) -> Tuple[int, int, int]:
""" """
Returns three variables: (i) the index of the chunk in which the given element of the item is Returns three variables: (i) the index of the chunk in which the given element of the item is
represented, (ii) the starting byte position, (iii) the ending byte position. For example for represented, (ii) the starting byte position within the chunk, (iii) the ending byte position within the chunk. For example for
a 6-item list of uint64 values, index=2 will return (0, 16, 24), index=5 will return (1, 8, 16) a 6-item list of uint64 values, index=2 will return (0, 16, 24), index=5 will return (1, 8, 16)
""" """
if issubclass(typ, Elements): if issubclass(typ, Elements):