mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 14:48:08 -05:00
22 lines
300 B
Plaintext
22 lines
300 B
Plaintext
k = 13;
|
|
field = "pallas";
|
|
|
|
constant "SMT" {
|
|
}
|
|
|
|
witness "SMT" {
|
|
Base root,
|
|
SparseMerklePath path,
|
|
Base leaf,
|
|
}
|
|
|
|
circuit "SMT" {
|
|
is_member = sparse_tree_is_member(root, path, leaf);
|
|
|
|
ONE = witness_base(1);
|
|
constrain_equal_base(is_member, ONE);
|
|
|
|
constrain_instance(root);
|
|
}
|
|
|