@aztec/blob-lib 3.0.0-nightly.20250930 → 3.0.0-nightly.20251002
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.
- package/dest/types.d.ts +10 -0
- package/dest/types.d.ts.map +1 -1
- package/dest/types.js +1 -1
- package/package.json +3 -3
- package/src/types.ts +11 -0
package/dest/types.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
1
|
export * from './sponge_blob.js';
|
|
2
|
+
/**
|
|
3
|
+
* Type definition for the KZG instance returned by Blob.getViemKzgInstance().
|
|
4
|
+
* Contains the cryptographic functions needed for blob commitment and proof generation.
|
|
5
|
+
*/
|
|
6
|
+
export interface BlobKzgInstance {
|
|
7
|
+
/** Function to compute KZG commitment from blob data */
|
|
8
|
+
blobToKzgCommitment(blob: Uint8Array): Uint8Array;
|
|
9
|
+
/** Function to compute KZG proof for blob data */
|
|
10
|
+
computeBlobKzgProof(blob: Uint8Array, commitment: Uint8Array): Uint8Array;
|
|
11
|
+
}
|
|
2
12
|
//# sourceMappingURL=types.d.ts.map
|
package/dest/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAIjC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,mBAAmB,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAClD,kDAAkD;IAClD,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,UAAU,CAAC;CAC3E"}
|
package/dest/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './sponge_blob.js';
|
|
1
|
+
export * from './sponge_blob.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/blob-lib",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.20251002",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"../package.common.json"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@aztec/constants": "3.0.0-nightly.
|
|
31
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
30
|
+
"@aztec/constants": "3.0.0-nightly.20251002",
|
|
31
|
+
"@aztec/foundation": "3.0.0-nightly.20251002",
|
|
32
32
|
"c-kzg": "4.0.0-alpha.1",
|
|
33
33
|
"tslib": "^2.4.0"
|
|
34
34
|
},
|
package/src/types.ts
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
1
|
export * from './sponge_blob.js';
|
|
2
2
|
|
|
3
3
|
// TODO: Separate functions that use c-kzg from classes and export those classes here.
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Type definition for the KZG instance returned by Blob.getViemKzgInstance().
|
|
7
|
+
* Contains the cryptographic functions needed for blob commitment and proof generation.
|
|
8
|
+
*/
|
|
9
|
+
export interface BlobKzgInstance {
|
|
10
|
+
/** Function to compute KZG commitment from blob data */
|
|
11
|
+
blobToKzgCommitment(blob: Uint8Array): Uint8Array;
|
|
12
|
+
/** Function to compute KZG proof for blob data */
|
|
13
|
+
computeBlobKzgProof(blob: Uint8Array, commitment: Uint8Array): Uint8Array;
|
|
14
|
+
}
|