Page MenuHomePhabricator

Add pubkey prefix constants to include/secp256k1.h
ClosedPublic

Authored by deadalnix on Dec 10 2017, 23:04.

Details

Summary

This is backport of PR#459 by Andrew Poelstra

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/secp256k1/src/eckey_impl.h
46 ↗(On Diff #2031)

Is 0x02 | (secp256k1_fe_is_odd(&elem->y) ever false? This looks like it's going to store a different value than before.

	cout << hex << (0x02 | 0x00 ? 0 : 1)  <<endl;

Always prints 0

src/secp256k1/src/eckey_impl.h
46 ↗(On Diff #2031)

Rather, it prints 0 and not 3

Nevermind, I didn't see some brackets.

This revision is now accepted and ready to land.Dec 11 2017, 20:13
This revision was automatically updated to reflect the committed changes.