diff --git a/packages/circom/circuits/common/from_addr_regex.circom b/packages/circom/circuits/common/from_addr_regex.circom index 250fce3..302c8d3 100644 --- a/packages/circom/circuits/common/from_addr_regex.circom +++ b/packages/circom/circuits/common/from_addr_regex.circom @@ -18,11 +18,11 @@ template FromAddrRegex(msg_bytes) { signal emailNameOut; signal emailNameReveal[msg_bytes]; - (emailNameOut, emailNameReveal) <== EmailAddrWithNameRegex(msg_bytes)(msg); + (emailNameOut, emailNameReveal) <== EmailAddrWithNameRegex(msg_bytes)(fromReveal); signal emailAddrOut; signal emailAddrReveal[msg_bytes]; - (emailAddrOut, emailAddrReveal) <== EmailAddrRegex(msg_bytes)(msg); + (emailAddrOut, emailAddrReveal) <== EmailAddrRegex(msg_bytes)(fromReveal); out <== MultiOR(2)([emailNameOut, emailAddrOut]); for(var i=0; i