Page MenuHomePhabricator

Revert "add flags to VerifySignature and sigcache"

Authored by markblundeberg on Jun 7 2019, 04:35.



This reverts D2373, which was only done in the first place so that a
pre-activation 64-byte ECDSA signature could not fill the cache to
masquerade as a Schnorr signature post-activation. Now that the
upgrade is past and enable_schnorr flag is gone, this extra technical
complication is pointless (and it is unlikely to ever be useful again).

Depends on D3332

Test Plan

make check

Diff Detail

rABC Bitcoin ABC
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

markblundeberg created this revision.Jun 7 2019, 04:35
Herald added a reviewer: Restricted Project. · View Herald TranscriptJun 7 2019, 04:35
markblundeberg edited the summary of this revision. (Show Details)Jun 7 2019, 04:40
jasonbcox added inline comments.
53 ↗(On Diff #9235)

I realize this ordering is going back to what it used to be. But that begs the question why it was changed in the first place?

markblundeberg added inline comments.Jun 7 2019, 20:15
53 ↗(On Diff #9235)

IIRC I changed it in order to match the order of its caller, VerifySignature. Perhaps we can keep that order, just take out flags.

An alternative order that would also make sense is hash,pubkey,sig, which would match order of hashing.

deadalnix accepted this revision.Jun 12 2019, 17:15

This is correct as long as we "pretend" schnorr always was activated.

This revision is now accepted and ready to land.Jun 12 2019, 17:15
markblundeberg edited the summary of this revision. (Show Details)

rebased onto split parent