rlnv2-diff-slash.zk 388 B

123456789101112131415161718
  1. k = 13;
  2. field = "pallas";
  3. constant "RlnSlash" {}
  4. witness "RlnSlash" {
  5. Base secret_key,
  6. MerklePath identity_path,
  7. Uint32 identity_leaf_pos,
  8. }
  9. circuit "RlnSlash" {
  10. identity_derivation_path = witness_base(11);
  11. identity_commit = poseidon_hash(identity_derivation_path, secret_key);
  12. root = merkle_root(identity_leaf_pos, identity_path, identity_commit);
  13. constrain_instance(root);
  14. }