We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
static function verifyRabinMsg(int[RabinUtil.ORACLE_VERIFY_NUM] rabinPubKeyArray, bytes rabinMsg, bytes[RabinUtil.ORACLE_VERIFY_NUM] paddingArray, int[RabinUtil.ORACLE_VERIFY_NUM] sigArray): bool { loop(ORACLE_VERIFY_NUM): i { int rabinPubKey = rabinPubKeyArray[i]; bytes padding = paddingArray[i]; int h = RabinUtil.rabinHash(rabinMsg + padding); int sig = sigArray[i]; require ((sig * sig) % rabinPubKey == h % rabinPubKey); } return true; }
token_sensible/contracts/rabinUtil.scrypt
Lines 42 to 56 in edb9d6b
The text was updated successfully, but these errors were encountered:
No branches or pull requests
token_sensible/contracts/rabinUtil.scrypt
Lines 42 to 56 in edb9d6b
The text was updated successfully, but these errors were encountered: