Skip to content

Commit

Permalink
Fix long lines (#444)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Oct 4, 2024
1 parent 096be4a commit 9421d9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
14 changes: 12 additions & 2 deletions draft-irtf-cfrg-vdaf.md
Original file line number Diff line number Diff line change
Expand Up @@ -5413,7 +5413,12 @@ def extend(
seed: bytes,
ctx: bytes,
nonce: bytes) -> tuple[list[bytes], list[Field2]]:
xof = self.current_xof(level, seed, format_dst(1, 0, 0) + ctx, nonce)
xof = self.current_xof(
level,
seed,
format_dst(1, 0, 0) + ctx,
nonce,
)
s = [
bytearray(xof.next(self.KEY_SIZE)),
bytearray(xof.next(self.KEY_SIZE)),
Expand All @@ -5432,7 +5437,12 @@ def convert(
seed: bytes,
ctx: bytes,
nonce: bytes) -> tuple[bytes, FieldVec]:
xof = self.current_xof(level, seed, format_dst(1, 0, 1) + ctx, nonce)
xof = self.current_xof(
level,
seed,
format_dst(1, 0, 1) + ctx,
nonce,
)
next_seed = xof.next(self.KEY_SIZE)
field = self.current_field(level)
w = xof.next_vec(field, self.VALUE_LEN)
Expand Down
14 changes: 12 additions & 2 deletions poc/vdaf_poc/idpf_bbcggi21.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@ def extend(
seed: bytes,
ctx: bytes,
nonce: bytes) -> tuple[list[bytes], list[Field2]]:
xof = self.current_xof(level, seed, format_dst(1, 0, 0) + ctx, nonce)
xof = self.current_xof(
level,
seed,
format_dst(1, 0, 0) + ctx,
nonce,
)
s = [
bytearray(xof.next(self.KEY_SIZE)),
bytearray(xof.next(self.KEY_SIZE)),
Expand All @@ -287,7 +292,12 @@ def convert(
seed: bytes,
ctx: bytes,
nonce: bytes) -> tuple[bytes, FieldVec]:
xof = self.current_xof(level, seed, format_dst(1, 0, 1) + ctx, nonce)
xof = self.current_xof(
level,
seed,
format_dst(1, 0, 1) + ctx,
nonce,
)
next_seed = xof.next(self.KEY_SIZE)
field = self.current_field(level)
w = xof.next_vec(field, self.VALUE_LEN)
Expand Down

0 comments on commit 9421d9c

Please sign in to comment.