-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-1263 ECDSA signature malleability resistance
This change-set introduces ECDSA Signature malleability resistance. ECDSA signatures do not have unique representation and this can facilitate replay attacks and more. In order to have a unique representation, this change-set forses BCCSP to generate and accept only signatures with low-S. Bitcoin has also addressed this issue with the following BIP: https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki Before merging this change-set, we need to ensure that client-sdks generates signatures properly in order to avoid massive rejection of transactions. This is a port of the GO implementation here: https://gerrit.hyperledger.org/r/#/c/2983 This changeset has been successfully tested with 2983. Change-Id: Iee78ee93f83ddfdd99526ea3cca9c11b33af8318 Signed-off-by: Jim Zhang <jzhang@us.ibm.com>
- Loading branch information
1 parent
fab746c
commit cb9f8c1
Showing
3 changed files
with
83 additions
and
16 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