| 123456789101112131415 |
- 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);
- }
|