-
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.
fix: avoid unnecessary sig verifications
Previously we were performing duplicate signature verifications. This occurred whenever two or more inputs to our tx (b) were each outputs of the same source tx (a). In this case, KeyManager::verify() was being called using the exact same tx_hash, mint_pk, and mint_sig for each input. The change is to: 1. separate logic that verifies a mint sig is provided for each tx from the logic that actually verifies each sig. 2. generate a list of unique pk+sig. 3. verify tx hash against each pk+sig.
- Loading branch information
Showing
2 changed files
with
28 additions
and
20 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