Skip to content

Commit 5588624

Browse files
committed
fix
1 parent b51debc commit 5588624

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/prover_slow.h

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ uint64_t GetBlock(uint64_t i, uint64_t k, uint64_t T, integer& B) {
2626
mpz_mul_2exp(res.impl, res.impl, k);
2727
res = res / B;
2828
auto res_vector = res.to_vector();
29+
if (res_vector.size() == 0)
30+
printf("ZERO! i %llu k %llu T %llu\n",i,k,T);
31+
res_vector.resize(1);
2932
return res_vector[0];
3033
}
3134

src/verifier_test.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ std::vector<uint8_t> HexToBytes(const char *hex_proof) {
4343

4444
int main()
4545
{
46+
int l,k;
47+
48+
ApproximateParameters(90909, l, k);
49+
50+
cout << "l: " << l << " k: " << k << endl;
51+
4652

4753
std::vector<uint8_t> challenge_hash=HexToBytes("a6c42558174fb1eedc64");
4854
std::vector<uint8_t> x_s=HexToBytes("0300aca4849458af5c557710c80f21519f196907764d2d55c9b70581a90d49ca7b3201ad6a9da836429e6592c200e965434f0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000");

0 commit comments

Comments
 (0)