mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-11 02:35:53 +00:00
Regen dist
This commit is contained in:
parent
062e4e0f30
commit
1d20797874
@ -1,3 +1,5 @@
|
||||
all: clean build format test bundle
|
||||
|
||||
clean:
|
||||
yarn node-gyp clean
|
||||
rm -rf build
|
||||
|
2
bindings/node.js/dist/dts/kzg.d.ts
vendored
2
bindings/node.js/dist/dts/kzg.d.ts
vendored
@ -3,7 +3,7 @@ export declare type KZGProof = Uint8Array;
|
||||
export declare type KZGCommitment = Uint8Array;
|
||||
export declare type Blob = Uint8Array;
|
||||
export declare const FIELD_ELEMENTS_PER_BLOB: number;
|
||||
export declare const BYTES_PER_FIELD: number;
|
||||
export declare const BYTES_PER_FIELD_ELEMENT: number;
|
||||
export declare function loadTrustedSetup(filePath: string): void;
|
||||
export declare function freeTrustedSetup(): void;
|
||||
export declare function blobToKzgCommitment(blob: Blob): KZGCommitment;
|
||||
|
4
bindings/node.js/dist/kzg.js
vendored
4
bindings/node.js/dist/kzg.js
vendored
@ -6,7 +6,7 @@
|
||||
*/
|
||||
const kzg = require("./kzg.node");
|
||||
const FIELD_ELEMENTS_PER_BLOB = kzg.FIELD_ELEMENTS_PER_BLOB;
|
||||
const BYTES_PER_FIELD = kzg.BYTES_PER_FIELD;
|
||||
const BYTES_PER_FIELD_ELEMENT = kzg.BYTES_PER_FIELD_ELEMENT;
|
||||
// Stored as internal state
|
||||
let setupHandle;
|
||||
function loadTrustedSetup(filePath) {
|
||||
@ -41,7 +41,7 @@ function verifyAggregateKzgProof(blobs, expectedKzgCommitments, kzgAggregatedPro
|
||||
return kzg.verifyAggregateKzgProof(blobs, expectedKzgCommitments, kzgAggregatedProof, setupHandle);
|
||||
}
|
||||
|
||||
exports.BYTES_PER_FIELD = BYTES_PER_FIELD;
|
||||
exports.BYTES_PER_FIELD_ELEMENT = BYTES_PER_FIELD_ELEMENT;
|
||||
exports.FIELD_ELEMENTS_PER_BLOB = FIELD_ELEMENTS_PER_BLOB;
|
||||
exports.blobToKzgCommitment = blobToKzgCommitment;
|
||||
exports.computeAggregateKzgProof = computeAggregateKzgProof;
|
||||
|
@ -9,7 +9,7 @@ blst:
|
||||
cp bindings/*.h ../inc
|
||||
|
||||
c_kzg_4844.o: c_kzg_4844.c Makefile
|
||||
clang -Wall -I$(INCLUDE_DIRS) $(CFLAGS) -c c_kzg_4844.c
|
||||
clang -Wall -I$(INCLUDE_DIRS) $(CFLAGS) -c $<
|
||||
|
||||
lib: c_kzg_4844.o Makefile
|
||||
cp *.o ../bindings/node.js
|
||||
|
Loading…
x
Reference in New Issue
Block a user