So really we have 3 potentially different sources:
- User manually setting
SECP256K1_{LITTLE,BIG}_ENDIAN
__BYTE_ORDER__
- The stuff I’m adding in this PR
Should all 3 be consistent with each other, if they’re available? That means no mechanism is left for the user to override if the detection is somehow wrong. Should we have a USE_FORCE_{BIG,LITTLE}_ENDIAN for that case?
One possibility is just using SECP256K1_{BIG,LITTLE}_ENDIAN. If exactly one of those two is set, that’s what is used. If not, all other sources that are found have to agree.