From d66e6ca0b8f055591d42ba3d09918013dbee7448 Mon Sep 17 00:00:00 2001 From: Gregory Markou <16929357+GregTheGreek@users.noreply.github.com> Date: Sun, 15 Sep 2019 17:12:36 -0400 Subject: [PATCH 1/4] Update 1_custody-game.md Fix table --- specs/core/1_custody-game.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/core/1_custody-game.md b/specs/core/1_custody-game.md index d789a6855..f03ffada6 100644 --- a/specs/core/1_custody-game.md +++ b/specs/core/1_custody-game.md @@ -77,7 +77,8 @@ This document details the beacon chain additions and changes in Phase 1 of Ether ## Constants ### Misc - +| Name | Value | +| - | - | | `BLS12_381_Q` | `4002409555221667393417789825735904156556882819939007885332058136124031650490837864442687629129015664037894272559787` | | `MINOR_REWARD_QUOTIENT` | `2**8` (= 256) | From 6d9dd04b5024dd21fe68e8bef40798a9cd68968d Mon Sep 17 00:00:00 2001 From: Gregory Markou <16929357+GregTheGreek@users.noreply.github.com> Date: Sun, 15 Sep 2019 21:03:50 -0400 Subject: [PATCH 2/4] Update 1_custody-game.md --- specs/core/1_custody-game.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/1_custody-game.md b/specs/core/1_custody-game.md index f03ffada6..3a7668caf 100644 --- a/specs/core/1_custody-game.md +++ b/specs/core/1_custody-game.md @@ -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. ```python -def custody_subchunkify(bytez: bytes) -> list: +def custody_subchunkify(bytez: bytes) -> list[int]: bytez += b'\x00' * (-len(bytez) % BYTES_PER_CUSTODY_SUBCHUNK) return [bytez[i:i + BYTES_PER_CUSTODY_SUBCHUNK] for i in range(0, len(bytez), BYTES_PER_CUSTODY_SUBCHUNK)] From 794a2407a197ad98a9ee87158a71ec10a3b52f54 Mon Sep 17 00:00:00 2001 From: Gregory Markou <16929357+GregTheGreek@users.noreply.github.com> Date: Mon, 16 Sep 2019 11:19:51 -0400 Subject: [PATCH 3/4] Update specs/core/1_custody-game.md Co-Authored-By: Danny Ryan --- specs/core/1_custody-game.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/1_custody-game.md b/specs/core/1_custody-game.md index 3a7668caf..64807d80d 100644 --- a/specs/core/1_custody-game.md +++ b/specs/core/1_custody-game.md @@ -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. ```python -def custody_subchunkify(bytez: bytes) -> list[int]: +def custody_subchunkify(bytez: bytes) -> list[bytes]: bytez += b'\x00' * (-len(bytez) % BYTES_PER_CUSTODY_SUBCHUNK) return [bytez[i:i + BYTES_PER_CUSTODY_SUBCHUNK] for i in range(0, len(bytez), BYTES_PER_CUSTODY_SUBCHUNK)] From 834b81122237afd977cd35a9e9b2e172ebafc733 Mon Sep 17 00:00:00 2001 From: Danny Ryan Date: Mon, 16 Sep 2019 13:26:27 -0600 Subject: [PATCH 4/4] fix custody_subchunkify return type --- specs/core/1_custody-game.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/1_custody-game.md b/specs/core/1_custody-game.md index 64807d80d..0eea43dc0 100644 --- a/specs/core/1_custody-game.md +++ b/specs/core/1_custody-game.md @@ -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. ```python -def custody_subchunkify(bytez: bytes) -> list[bytes]: +def custody_subchunkify(bytez: bytes) -> Sequence[bytes]: bytez += b'\x00' * (-len(bytez) % BYTES_PER_CUSTODY_SUBCHUNK) return [bytez[i:i + BYTES_PER_CUSTODY_SUBCHUNK] for i in range(0, len(bytez), BYTES_PER_CUSTODY_SUBCHUNK)]