Update specs/core/1_custody-game.md

Co-Authored-By: Danny Ryan <dannyjryan@gmail.com>
This commit is contained in:
Gregory Markou 2019-09-16 11:19:51 -04:00 committed by GitHub
parent 6d9dd04b50
commit 794a2407a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -340,7 +340,7 @@ def legendre_bit(a: int, q: int) -> int:
Given one proof of custody chunk, returns the proof of custody subchunks of the correct sizes. Given one proof of custody chunk, returns the proof of custody subchunks of the correct sizes.
```python ```python
def custody_subchunkify(bytez: bytes) -> list[int]: def custody_subchunkify(bytez: bytes) -> list[bytes]:
bytez += b'\x00' * (-len(bytez) % BYTES_PER_CUSTODY_SUBCHUNK) bytez += b'\x00' * (-len(bytez) % BYTES_PER_CUSTODY_SUBCHUNK)
return [bytez[i:i + BYTES_PER_CUSTODY_SUBCHUNK] return [bytez[i:i + BYTES_PER_CUSTODY_SUBCHUNK]
for i in range(0, len(bytez), BYTES_PER_CUSTODY_SUBCHUNK)] for i in range(0, len(bytez), BYTES_PER_CUSTODY_SUBCHUNK)]