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

Fixed Assertion Error #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/Stark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class Stark implements IStark {
validateAssertions(executionTrace, assertions);
}
catch (error) {
throw new StarkError(`Failed to generate the execution trace`, error);
throw new StarkError(`Failed to generate the execution trace`, error as Error);
}
log('Generated execution trace');

Expand Down Expand Up @@ -140,7 +140,7 @@ export class Stark implements IStark {
log('Computed low-degree proof');
}
catch (error) {
throw new StarkError('Low degree proof failed', error);
throw new StarkError('Low degree proof failed', error as Error);
}

// 8 ----- query evaluation tree at pseudo-random positions
Expand Down Expand Up @@ -209,7 +209,7 @@ export class Stark implements IStark {
}
catch (error) {
if (error instanceof StarkError === false) {
error = new StarkError(`Verification of evaluation Merkle proof failed`, error);
error = new StarkError(`Verification of evaluation Merkle proof failed`, error as Error);
}
throw error;
}
Expand Down Expand Up @@ -239,7 +239,7 @@ export class Stark implements IStark {
ldProver.verify(proof.ldProof, lcValues, positions, cPoly.compositionDegree);
}
catch (error) {
throw new StarkError('Verification of low degree failed', error);
throw new StarkError('Verification of low degree failed', error as Error);
}
log(`Verified low-degree proof`);

Expand Down
2 changes: 1 addition & 1 deletion lib/components/CompositionPolynomial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class CompositionPolynomial {
qEvaluations = context.evaluateTransitionConstraints(pPolys);
}
catch (error) {
throw new StarkError('Failed to evaluate transition constraints', error);
throw new StarkError('Failed to evaluate transition constraints', error as Error);
}
this.log('Computed transition constraint polynomials Q(x)');

Expand Down
Loading