Page MenuHomePhabricator

Add test for CheckPubKeyEncoding

Authored by deadalnix on Jul 15 2018, 00:59.



As per title. More test is better.

Depends on D1565

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

jasonbcox requested changes to this revision.Jul 16 2018, 19:11
jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
37 ↗(On Diff #4306)

I see invalid checks for 0x00 and 0x05 and valid checks for 0x02, 0x03, 0x04. Please add a test for 0x01, as it's not covered in this test.

This revision now requires changes to proceed.Jul 16 2018, 19:11

Add test case starting with 0x01

This revision is now accepted and ready to land.Jul 17 2018, 15:04
This revision was automatically updated to reflect the committed changes.