integration test for basic aux condition

This commit is contained in:
Scott Sadler
2018-02-22 00:59:15 -03:00
parent 691b8708f1
commit db2df2c37b
3 changed files with 48 additions and 3 deletions

View File

@@ -4,5 +4,10 @@
int CryptoConditionChecker::CheckAuxCondition(const CC *cond) const {
return true;
if (0 == strcmp((const char*)cond->method, "equals")) {
return (cond->conditionAuxLength == cond->fulfillmentAuxLength) &&
(0 == memcmp(cond->conditionAux, cond->fulfillmentAux, cond->conditionAuxLength));
}
printf("no defined behaviour for method:%s\n", cond->method);
return 0;
}