Skip to content

Commit

Permalink
Don't verify right after signing, and as a result don't re-verify the…
Browse files Browse the repository at this point in the history
… aggregated version, in sign_coin_spends (#17143)

Don't verify right after signing, and as a result don't re-verify the aggregated version, in sign_coin_spends.
  • Loading branch information
AmineKhaldi authored Dec 27, 2023
1 parent 4a44043 commit 1f060d4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chia/wallet/sign_coin_spends.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ async def sign_coin_spends(
else:
raise ValueError(f"no secret key for {pk}")
signature = AugSchemeMPL.sign(secret_key, msg)
assert AugSchemeMPL.verify(pk, msg, signature)
signatures.append(signature)

# Aggregate signatures
aggsig = AugSchemeMPL.aggregate(signatures)
assert AugSchemeMPL.aggregate_verify(pk_list, msg_list, aggsig)
return SpendBundle(coin_spends, aggsig)

0 comments on commit 1f060d4

Please sign in to comment.