Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure when regexes are wrongly defined #47

Open
javiersuweijie opened this issue Oct 17, 2024 · 1 comment
Open

Compilation failure when regexes are wrongly defined #47

javiersuweijie opened this issue Oct 17, 2024 · 1 comment
Labels
bug Something isn't working high

Comments

@javiersuweijie
Copy link
Collaborator

Example of an error.

error[TAC02]: This expression must be a tuple or an anonymous component
   ┌─ "/project/circuit/ProofOfPadThai.circom":54:51
   │
54 │     (OrderItemRegexOut, OrderItemRegexReveal) <== OrderItemRegex(maxBodyLength)(emailBody);
   │                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This is the tuple whose use is not allowed

This was due to not having public reveals in the regex definition.

"values": [
    {
      "name": "OrderItem",
      "parts": [
        {
          "is_public": false,
          "regex_def": "Pad Thai"
        }
      ],
      "location": "body",
      "maxLength": 64
    }
  ],
@javiersuweijie javiersuweijie added bug Something isn't working high labels Oct 17, 2024
@Divide-By-0
Copy link
Member

Well I wouldn't say they're wrongly defined, this should actually be allowed; I think the bigger issue is that we need some slight logic changes to support regexes that only have a single public or private part.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high
Projects
None yet
Development

No branches or pull requests

2 participants