slash.zk 370 B

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