mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
zk/vm: Allow strict and loose checks for less_than.
This commit is contained in:
@@ -14,10 +14,4 @@ circuit "Arith" {
|
||||
|
||||
difference = base_sub(a, b);
|
||||
constrain_instance(difference);
|
||||
|
||||
#a_gt_b = greater_than(a, b);
|
||||
#constrain_instance(a_gt_b);
|
||||
|
||||
#b_gt_a = greater_than(b, a);
|
||||
#constrain_instance(b_gt_a);
|
||||
}
|
||||
|
||||
@@ -88,5 +88,5 @@ circuit "Lead" {
|
||||
term2 = base_mul(term2_1, value);
|
||||
target = base_add(term1, term2);
|
||||
#lottery
|
||||
less_than(y_hash, target);
|
||||
less_than_loose(y_hash, target);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,8 @@ circuit "Opcodes" {
|
||||
|
||||
range_check(64, a);
|
||||
range_check(253, b);
|
||||
less_than(a, b);
|
||||
less_than_strict(a, b);
|
||||
less_than_loose(a, b);
|
||||
|
||||
root = merkle_root(leaf_pos, path, c);
|
||||
constrain_instance(root);
|
||||
|
||||
Reference in New Issue
Block a user