-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make SignHash & VerifyHash private There was no need for them to be public * Fix signing Sign and verify were not working because Sign was creating a 65 byte signature with a 0 or 1 recovery id and Verify expected a 64 byte signature with no recovery id. GenerateProofOfPossessionSignature was also not functioning correctly because the sign logic was failing to modify the signature recovery byte to be 27 or 28 which is expected by the ecrecover evm contract. Now Sign and Verify have been updated to produce and consume 64 byte ecdsa signatures without a recovery byte. GenerateProofOfPossessionSignature now correctly sets the recovery byte to be either 27 or 28. Also removed VerifyWithPrefix as it was not used. * fix typos Co-authored-by: Victor Graf <[email protected]>
- Loading branch information
Showing
1 changed file
with
28 additions
and
32 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