mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-10 07:08:05 -05:00
19 lines
388 B
Plaintext
19 lines
388 B
Plaintext
k = 13;
|
|
field = "pallas";
|
|
|
|
constant "RlnSlash" {}
|
|
|
|
witness "RlnSlash" {
|
|
Base secret_key,
|
|
MerklePath identity_path,
|
|
Uint32 identity_leaf_pos,
|
|
}
|
|
|
|
circuit "RlnSlash" {
|
|
identity_derivation_path = witness_base(11);
|
|
|
|
identity_commit = poseidon_hash(identity_derivation_path, secret_key);
|
|
root = merkle_root(identity_leaf_pos, identity_path, identity_commit);
|
|
constrain_instance(root);
|
|
}
|