-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: verify (always) Amount matches Commitment
High level changes: 1. The check that secret amount matches commitment is now moved inside Dbc::verify() so there is no chance of a wallet forgetting to do it. 2. We standardize on verify/verification instead of validate/validation. This matches usage in ringct and blsttc, so it makes the api more regular. Details: * change validate command to verify in mint-repl * impl From<AmountSecrets> instead of Into<RevealedCommitment> * impl From<AmountSecrets> instead of Into<Amount> * replace validate/validation with verify/verification in code/comments * rename validation.rs to verification.rs * rename TransactionValidator to TransactionVerifier * rename Dbc::confirm_valid() to verify() * verify that secret Amount matches public Commitment inside Dbc::verify() * update tests appropriately
- Loading branch information
Showing
8 changed files
with
76 additions
and
112 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
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
Oops, something went wrong.