forked from hdevalence/ed25519consensus
-
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.
Improve batch verification API (#10)
* Improve batch verification API Incorporates feedback from @FiloSottile. - [x] fix the order of arguments in `BatchVerifier.Add` to match `Verify`; - [x] made `Add` infallible, deferring failures to the batch verification; - [x] rename `BatchVerifier.VerifyBatch` to `BatchVerifier.Verify`; - [x] make `Verify` fail on an empty batch; - [x] make `Verify` idempotent. Closes #9 * Avoid panics on wrong-length signatures * Remove markdown from doc strings
- Loading branch information
1 parent
329f984
commit 59a8610
Showing
2 changed files
with
76 additions
and
40 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