This commit is contained in:
dancoffman 2022-11-03 22:57:03 -07:00
parent c3d11f915a
commit 3f66b35664
No known key found for this signature in database
GPG Key ID: 47B1F53E36A9B3CC
2 changed files with 3 additions and 3 deletions

View File

@ -2,8 +2,8 @@ export declare type BLSFieldElement = Uint8Array;
export declare type KZGProof = Uint8Array;
export declare type KZGCommitment = Uint8Array;
export declare type Blob = Uint8Array;
export declare const FIELD_ELEMENTS_PER_BLOB: any;
export declare const BYTES_PER_FIELD: any;
export declare const FIELD_ELEMENTS_PER_BLOB: number;
export declare const BYTES_PER_FIELD: number;
export declare function loadTrustedSetup(filePath: string): void;
export declare function freeTrustedSetup(): void;
export declare function blobToKzgCommitment(blob: Blob): KZGCommitment;

View File

@ -2,7 +2,7 @@
* The public interface of this module exposes the functions as specified by
* https://github.com/ethereum/consensus-specs/blob/dev/specs/eip4844/polynomial-commitments.md#kzg
*/
const kzg = require("./kzg.node");
const kzg: KZG = require("./kzg.node");
export type BLSFieldElement = Uint8Array; // 32 bytes
export type KZGProof = Uint8Array; // 48 bytes