Skip to content

Commit

Permalink
simplpedpop: Add comment about optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
real-or-random committed Dec 19, 2024
1 parent 5dcc4e2 commit 5a1ce96
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/chilldkg_ref/simplpedpop.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ def participant_step2(

threshold_pubkey = sum_coms_tweaked.commitment_to_secret()
pubshares = [
sum_coms_tweaked.pubshare(i) if i != idx else pubshare_tweaked for i in range(n)
sum_coms_tweaked.pubshare(i)
if i != idx
else pubshare_tweaked # We have computed our own pubshare already.
for i in range(n)
]
dkg_output = DKGOutput(
secshare_tweaked.to_bytes(),
Expand Down

0 comments on commit 5a1ce96

Please sign in to comment.