forked from tari-project/tari
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove unnecessary commitment hashing (tari-project#6416)
Description --- Removes unnecessary hashing of commitments used in faucet-related signatures. Motivation and Context --- Signatures used for faucet functionality unnecessarily hash commitments before passing them as an input message. This may have been done on the assumption that the signing functions often refer to the message as a challenge, despite this not being the case. This PR removes the unnecessary hashing operations. It may be worthwhile to refactor the associated signing functions to avoid any possible confusion about the nature of messages and challenges (as suggested in tari-project#6418). How Has This Been Tested? --- Existing tests pass. What process can a PR reviewer use to test or verify this change? --- Check that the commitment data is being passed into the signing functions correctly, and that those functions do in face assume the input is an arbitrary message and not a challenge.
- Loading branch information
1 parent
54bccd7
commit 1bd2fde
Showing
4 changed files
with
9 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters