Skip to content

Commit

Permalink
replace tabs with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
olomix committed Jan 3, 2024
1 parent 66c13b1 commit bdfef20
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/prover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ groth16_prover(const void *zkey_buffer, unsigned long zkey_size,
BinFileUtils::BinFile wtns(wtns_buffer, wtns_size, "wtns", 2);
auto wtnsHeader = WtnsUtils::loadHeader(&wtns);

if (zkeyHeader->nVars != wtnsHeader->nVars) {
snprintf(error_msg, error_msg_maxsize,
"Invalid witness length. Circuit: %u, witness: %u",
zkeyHeader->nVars, wtnsHeader->nVars);
return PPROVER_INVALID_WITNESS_LENGTH;
}
if (zkeyHeader->nVars != wtnsHeader->nVars) {
snprintf(error_msg, error_msg_maxsize,
"Invalid witness length. Circuit: %u, witness: %u",
zkeyHeader->nVars, wtnsHeader->nVars);
return PPROVER_INVALID_WITNESS_LENGTH;
}

size_t proofMinSize = ProofBufferMinSize();
size_t publicMinSize = PublicBufferMinSize(zkeyHeader->nPublic);
Expand Down

0 comments on commit bdfef20

Please sign in to comment.