Skip to content

Commit 2efcb56

Browse files
committed
Remove no-plan-to-fix TODO
1 parent e84dbb5 commit 2efcb56

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

common/shamir.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
# TODO: The Shamir code also has a max (is that really needed?)
6363

6464
import hmac
65-
import secrets # TODO: Use secrets everywhere instead of os.urandom
65+
import secrets
6666
from typing import List, NamedTuple, Sequence, Tuple
6767

6868

@@ -122,12 +122,6 @@ def _precompute_exp_log() -> Tuple[List[int], List[int]]:
122122
def _interpolate(shares: Sequence[RawShare], x: int) -> bytes:
123123
"""
124124
Returns f(x) given the Shamir shares (x_1, f(x_1)), ... , (x_k, f(x_k)).
125-
:param shares: The Shamir shares.
126-
:type shares: A list of pairs (x_i, y_i), where x_i is an integer and y_i is an array of
127-
bytes representing the evaluations of the polynomials in x_i.
128-
:param int x: The x coordinate of the result.
129-
:return: Evaluations of the polynomials in x.
130-
:rtype: Array of bytes.
131125
"""
132126

133127
x_coordinates = set(share.x for share in shares)

0 commit comments

Comments
 (0)