Not sure if tests are necessary here. I've probably oversimplified, but this was enough to get bitcoin's tests passing again with libsecp256k1.
API BREAKAGE: add a lows flag to secp256k1_ecdsa_sign #69
pull theuni wants to merge 1 commits into bitcoin-core:master from theuni:lows changing 5 files +11 −9-
theuni commented at 1:31 AM on October 22, 2014: contributor
-
9e7a726b58
API BREAKAGE: add a lows flag to secp256k1_ecdsa_sign
Makes S negation (when above order / 2) optional.
-
gmaxwell commented at 2:36 AM on October 22, 2014: contributor
What? I don't think this should be a flag. What test is failing?
-
theuni commented at 2:42 AM on October 22, 2014: contributor
<coryfields_> sipa: i've fixed up the libsecp256k1 in bitcoin (testing it in libbitcoinconsensus), and it's having trouble with a particular test. Known issue for "P2PK with high S" ? <sipa> coryfields_: that sounds very expected <coryfields_> ok, will just skip over it <sipa> it needs a change in secp256k1's api, i'm afraid <sipa> as you can't tell it to not use low-S <coryfields_> figured as much, specifying high/low S i suppose <coryfields_> ? <coryfields_> right <sipa> yup <coryfields_> want me to take a crack at it? or is it waiting on something? <sipa> it's trivial to do, you can if you want toBy "trivial" + api change, I assumed he was just referring to a flag similar to the one our openssl wrapper uses.
-
gmaxwell commented at 2:42 AM on October 22, 2014: contributor
okay if sipa says so! seems odd to introduce an call just to get that behavior.
-
theuni commented at 2:50 AM on October 22, 2014: contributor
Not sure if this is actually what he was after or not, it was just the most trivial way I could come up with.
I suppose for a bit of future-proofing we could use a bitfield param instead, where lowS is the only valid flag for now.
-
sipa commented at 10:17 AM on October 26, 2014: contributor
- evoskuil cross-referenced this on Oct 27, 2014 from issue Breaking change introduced by secp256k1 (dev branch) by evoskuil
-
sipa commented at 9:37 PM on November 5, 2014: contributor
I've implemented a replacement on the bitcoin side: bitcoin/bitcoin@4a69b3b0174014e611143c31d411dde9d377aa98
-
sipa commented at 7:36 PM on November 12, 2014: contributor
Closing in favor of bitcoin/bitcoin#5256.
- sipa closed this on Nov 12, 2014