Open
Description
I am trying to compile a graph/build circuit ( executing build-circuit
)
And seems something not supported yet for my this circuit/use case.
This is the error what I am have
thread 'main' panicked at src/bin/build-circuit.rs:1312:21:
assertion `left == right` failed: expected a ternary operation but it doesn't looks like one as the 'else' branch is not of length 1: 0: EdDSADocumentVerifier_37 -> EdDSAVerifier_36 -> Bits2Point_Strict_8 -> sqrt
left: 0
right: 1
Other circuits compiling without issue.
Here is my simplified circuit where I have this issue:
pragma circom 2.1.6;
include "circomlib/circuits/eddsa.circom";
template EdDSADocumentVerifier(MSG_LENGTH) {
signal input msg[MSG_LENGTH];
signal input PUB_KEY[256];
signal input R8[256];
signal input S[256];
signal output out;
component edDSAVerifier = EdDSAVerifier(MSG_LENGTH);
edDSAVerifier.A <== PUB_KEY;
edDSAVerifier.msg <== msg;
edDSAVerifier.R8 <== R8;
edDSAVerifier.S <== S;
out <== 1;
}
component main {public [PUB_KEY]} = EdDSADocumentVerifier(744);
here is the input just in case (but for build circuit its not really required)
{
"msg":[1,0,0,0,0,1,1,0,1,1,0,1,1,0,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,0,0,0,0,0,0,1,1,0,1,0,0,0,0,0,1,0,1,0,0,0,1,1,1,1,0,0,1,0,0,0,0,0,1,0,0,1,0,0,0,0,1,0,1,1,0,0,0,0,1,0,0,1,1,1,0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,1,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,1,1,1,0,0,1,0,1,0,0,0,0,0,1,0,1,0,1,1,0,0,1,0,1,0,1,0,0,0,1,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0,1,1,1,1,0,0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