@guildofweavers/genstark
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -19,3 +19,3 @@ "use strict"; | ||
// degree of composition polynomial is deg(C(x)) = deg(Q(x)) - deg(Z(x)) | ||
this.compositionDegree = this.combinationDegree - context.traceLength; | ||
this.compositionDegree = Math.max(this.combinationDegree - context.traceLength, context.traceLength); | ||
// group transition constraints together by their degree | ||
@@ -22,0 +22,0 @@ this.constraintGroups = groupTransitionConstraints(constraints, context.traceLength); |
@@ -36,3 +36,7 @@ "use strict"; | ||
} | ||
offset = buffer.writeUInt8(proof.ldProof.remainder.length, offset); | ||
// for remainder array length, zero means 256 | ||
const remainderLength = (proof.ldProof.remainder.length === 256) | ||
? 0 | ||
: proof.ldProof.remainder.length; | ||
offset = buffer.writeUInt8(remainderLength, offset); | ||
for (let value of proof.ldProof.remainder) { | ||
@@ -39,0 +43,0 @@ offset = utils.writeBigInt(value, buffer, offset, this.fieldElementSize); |
{ | ||
"name": "@guildofweavers/genstark", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "zk-STARK generation library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92449
1548