namnc / circom-2-arithc

Circom interpreter to arithmetic circuit description
MIT License
42 stars 8 forks source link

Assigning the value to an intermediate signal returns error #78

Open curryrasul opened 2 weeks ago

curryrasul commented 2 weeks ago

I tried the circuit:

pragma circom 2.1.0;

template temp() {
    signal input a;
    signal output out;

    signal intermediate <== 0;
}

component main = temp();

It finishes with error:

thread 'main' panicked at src/compiler.rs:520:51:
no entry found for key
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
namnc commented 1 week ago

I think this is a weird circuit may be we give it low priority ...

curryrasul commented 1 week ago

@namnc Yes, agree. It's not only in this circuit though, it's just an example