From 6b3d185b4d2cdfaf7766c9b93e0446ada38cdfe1 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Wed, 23 Nov 2022 19:58:40 +0000 Subject: [PATCH 1/2] Fix docstring --- specs/eip4844/polynomial-commitments.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/eip4844/polynomial-commitments.md b/specs/eip4844/polynomial-commitments.md index b18122b037..00570cef34 100644 --- a/specs/eip4844/polynomial-commitments.md +++ b/specs/eip4844/polynomial-commitments.md @@ -173,7 +173,7 @@ def compute_challenges(polynomials: Sequence[Polynomial], hashed_data = hash(DOMAIN_SEPARATOR, polynomials, commitments) r = hash(hashed_data, 0) - r_powers = [r, r**2, r**3, ...] + r_powers = [1, r, r**2, r**3, ...] eval_challenge = hash(hashed_data, 1) Then return `r_powers` and `eval_challenge` after converting them to BLS field elements. @@ -259,7 +259,7 @@ def poly_lincomb(polys: Sequence[Polynomial], ```python def compute_powers(x: BLSFieldElement, n: uint64) -> Sequence[BLSFieldElement]: """ - Return ``x`` to power of [0, n-1]. + Return ``x`` to power of [0, n-1], if n > 0. When n==0, an empty array is returned """ current_power = 1 powers = [] From 63859d15967f3a595dadf63b601926ea3f469c58 Mon Sep 17 00:00:00 2001 From: kevaundray Date: Wed, 23 Nov 2022 20:00:47 +0000 Subject: [PATCH 2/2] fix: add fullstop --- specs/eip4844/polynomial-commitments.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/eip4844/polynomial-commitments.md b/specs/eip4844/polynomial-commitments.md index 00570cef34..6f5a369e4e 100644 --- a/specs/eip4844/polynomial-commitments.md +++ b/specs/eip4844/polynomial-commitments.md @@ -259,7 +259,7 @@ def poly_lincomb(polys: Sequence[Polynomial], ```python def compute_powers(x: BLSFieldElement, n: uint64) -> Sequence[BLSFieldElement]: """ - Return ``x`` to power of [0, n-1], if n > 0. When n==0, an empty array is returned + Return ``x`` to power of [0, n-1], if n > 0. When n==0, an empty array is returned. """ current_power = 1 powers = []