mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-08 22:28:12 -05:00
zkas: Support >1 nested calls
This commit is contained in:
13
proof/nested.zk
Normal file
13
proof/nested.zk
Normal file
@@ -0,0 +1,13 @@
|
||||
k = 11;
|
||||
field = "pallas";
|
||||
|
||||
constant "Nested" {}
|
||||
|
||||
witness "Nested" {
|
||||
Base a,
|
||||
}
|
||||
|
||||
circuit "Nested" {
|
||||
triple_hash = poseidon_hash(poseidon_hash(poseidon_hash(a)));
|
||||
constrain_instance(triple_hash);
|
||||
}
|
||||
Reference in New Issue
Block a user