@aztec/blob-lib 2.0.0-nightly.20250822 → 2.0.0-nightly.20250823

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,7 +58,7 @@ const { computeKzgProof, verifyKzgProof } = cKzg;
58
58
  */ static async precomputeBatchedBlobChallenges(blobs) {
59
59
  // We need to precompute the final challenge values to evaluate the blobs.
60
60
  let z = blobs[0].challengeZ;
61
- // We start at i = 1, because z is initialised as the first blob's challenge.
61
+ // We start at i = 1, because z is initialized as the first blob's challenge.
62
62
  for(let i = 1; i < blobs.length; i++){
63
63
  z = await poseidon2Hash([
64
64
  z,
@@ -70,7 +70,7 @@ const { computeKzgProof, verifyKzgProof } = cKzg;
70
70
  const evaluations = proofObjects.map(([_, evaluation])=>BLS12Fr.fromBuffer(Buffer.from(evaluation)));
71
71
  // ...and find the challenge for the linear combination of blobs.
72
72
  let gamma = await hashNoirBigNumLimbs(evaluations[0]);
73
- // We start at i = 1, because gamma is initialised as the first blob's evaluation.
73
+ // We start at i = 1, because gamma is initialized as the first blob's evaluation.
74
74
  for(let i = 1; i < blobs.length; i++){
75
75
  gamma = await poseidon2Hash([
76
76
  gamma,
@@ -247,7 +247,7 @@ const { computeKzgProof, verifyKzgProof } = cKzg;
247
247
  * We assume the input blobs have not been evaluated at z.
248
248
  * @returns An updated blob accumulator.
249
249
  */ async accumulateBlobs(blobs) {
250
- // Initialise the acc to iterate over:
250
+ // Initialize the acc to iterate over:
251
251
  let acc = this.clone();
252
252
  for(let i = 0; i < blobs.length; i++){
253
253
  acc = await acc.accumulate(blobs[i]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/blob-lib",
3
- "version": "2.0.0-nightly.20250822",
3
+ "version": "2.0.0-nightly.20250823",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dest/index.js",
@@ -25,8 +25,8 @@
25
25
  "../package.common.json"
26
26
  ],
27
27
  "dependencies": {
28
- "@aztec/constants": "2.0.0-nightly.20250822",
29
- "@aztec/foundation": "2.0.0-nightly.20250822",
28
+ "@aztec/constants": "2.0.0-nightly.20250823",
29
+ "@aztec/foundation": "2.0.0-nightly.20250823",
30
30
  "c-kzg": "4.0.0-alpha.1",
31
31
  "tslib": "^2.4.0"
32
32
  },
@@ -71,7 +71,7 @@ export class BatchedBlob {
71
71
  static async precomputeBatchedBlobChallenges(blobs: Blob[]): Promise<FinalBlobBatchingChallenges> {
72
72
  // We need to precompute the final challenge values to evaluate the blobs.
73
73
  let z = blobs[0].challengeZ;
74
- // We start at i = 1, because z is initialised as the first blob's challenge.
74
+ // We start at i = 1, because z is initialized as the first blob's challenge.
75
75
  for (let i = 1; i < blobs.length; i++) {
76
76
  z = await poseidon2Hash([z, blobs[i].challengeZ]);
77
77
  }
@@ -80,7 +80,7 @@ export class BatchedBlob {
80
80
  const evaluations = proofObjects.map(([_, evaluation]) => BLS12Fr.fromBuffer(Buffer.from(evaluation)));
81
81
  // ...and find the challenge for the linear combination of blobs.
82
82
  let gamma = await hashNoirBigNumLimbs(evaluations[0]);
83
- // We start at i = 1, because gamma is initialised as the first blob's evaluation.
83
+ // We start at i = 1, because gamma is initialized as the first blob's evaluation.
84
84
  for (let i = 1; i < blobs.length; i++) {
85
85
  gamma = await poseidon2Hash([gamma, await hashNoirBigNumLimbs(evaluations[i])]);
86
86
  }
@@ -287,7 +287,7 @@ export class BatchedBlobAccumulator {
287
287
  * @returns An updated blob accumulator.
288
288
  */
289
289
  async accumulateBlobs(blobs: Blob[]) {
290
- // Initialise the acc to iterate over:
290
+ // Initialize the acc to iterate over:
291
291
  let acc: BatchedBlobAccumulator = this.clone();
292
292
  for (let i = 0; i < blobs.length; i++) {
293
293
  acc = await acc.accumulate(blobs[i]);