-
Notifications
You must be signed in to change notification settings - Fork 295
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
secp256k1: Make field value mul int take uint8.
This modifies the MulInt method on a field value to take a uint8 instead of a uint in order to make it harder to misuse it since it has a precondition which requires to the caller to ensure internal overflows are avoided. In practice, the code currently only ever calls it with a max value of 8, but in order to prepare for exporting the type, it's nicer to make it harder to misuse.
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 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