iden3 / circom

zkSnark circuit compiler
GNU General Public License v3.0
1.31k stars 253 forks source link

Allow duplicate but equal templates/functions #226

Open numtel opened 9 months ago

numtel commented 9 months ago

Hello,

So I don't have much experience with Rust but I was able to come up with this patch for my issue #225.

I would imagine that it may be better if it compares the template/function bodies but I couldn't figure out how to get the equality to work on the ast::Statement type.