secp256k1ScalarIsHigh static method
Implementation
static int secp256k1ScalarIsHigh(Secp256k1Scalar a) {
int yes = 0;
int no = 0;
secp256k1ScalarVerify(a);
no |= (a[3] < Secp256k1Const.secp256k1NH3).toInt;
yes |= (a[3] > Secp256k1Const.secp256k1NH3).toInt & ~no;
no |= (a[2] < Secp256k1Const.secp256k1NH2).toInt & ~yes;
no |= (a[1] < Secp256k1Const.secp256k1NH1).toInt & ~yes;
yes |= (a[1] > Secp256k1Const.secp256k1NH1).toInt & ~no;
yes |= (a[0] > Secp256k1Const.secp256k1NH0).toInt & ~no;
return yes;
}