Skip to content

Commit

Permalink
cleanup comments and extra return
Browse files Browse the repository at this point in the history
  • Loading branch information
kevaundray committed Nov 22, 2022
1 parent 80dd7be commit 946fd5f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions specs/eip4844/polynomial-commitments.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,8 @@ def hash_to_bls_field(polys: Sequence[Polynomial],
for commitment in comms:
data += commitment

# Append challenge index last so we can cache the data buffer
# in the case of multiple challenges
hashed_data = hash(data)
return bytes_to_bls_field(hash(hashed_data, int.to_bytes(challenge_index, 1, ENDIANNESS)))

return bytes_to_bls_field(hash(data))
return bytes_to_bls_field(hash(hashed_data + int.to_bytes(challenge_index, 1, ENDIANNESS)))
```

#### `bls_modular_inverse`
Expand Down

0 comments on commit 946fd5f

Please sign in to comment.