(squash this) indicate what Ethereum does

This commit is contained in:
ValarDragon 2018-08-03 17:49:46 -07:00
parent 87f09adeec
commit 6691492540
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ This is a simple check, instead of checking if `s < n`, instead check `s <= (n -
An example of another cryptosystem using this
is the parity definition here https://github.com/zkcrypto/pairing/pull/30#issuecomment-372910663.
This is the same solution Ethereum has chosen for solving secp malleability.
## Proposed Implementation
Fork https://github.com/btcsuite/btcd, and just update the [parse sig method](https://github.com/btcsuite/btcd/blob/master/btcec/signature.go#195) and serialize functions to enforce our canonical form.