HomePhabricator

Refactor IsCompressedOrUncompressedPubKey

Description

Refactor IsCompressedOrUncompressedPubKey

Summary:
Using a switch is much more readable than a bunch of nested ifs.

Depends on D1568

Test Plan:

make check

Reviewers: #bitcoin_abc, kyuupichan

Reviewed By: #bitcoin_abc, kyuupichan

Subscribers: kyuupichan, teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1569

Details

Provenance
deadalnixAuthored on Jul 15 2018, 13:55
deadalnixPushed on Jul 17 2018, 19:59
Reviewer
Restricted Project
Differential Revision
D1569: Refactor IsCompressedOrUncompressedPubKey
Parents
rABC608519dce2d0: Add test for CheckSignatureEncoding to verify low S is checked properly.
Branches
Unknown
Tags
Unknown