Fix type
This commit is contained in:
parent
c3d11f915a
commit
3f66b35664
|
@ -2,8 +2,8 @@ export declare type BLSFieldElement = Uint8Array;
|
||||||
export declare type KZGProof = Uint8Array;
|
export declare type KZGProof = Uint8Array;
|
||||||
export declare type KZGCommitment = Uint8Array;
|
export declare type KZGCommitment = Uint8Array;
|
||||||
export declare type Blob = Uint8Array;
|
export declare type Blob = Uint8Array;
|
||||||
export declare const FIELD_ELEMENTS_PER_BLOB: any;
|
export declare const FIELD_ELEMENTS_PER_BLOB: number;
|
||||||
export declare const BYTES_PER_FIELD: any;
|
export declare const BYTES_PER_FIELD: number;
|
||||||
export declare function loadTrustedSetup(filePath: string): void;
|
export declare function loadTrustedSetup(filePath: string): void;
|
||||||
export declare function freeTrustedSetup(): void;
|
export declare function freeTrustedSetup(): void;
|
||||||
export declare function blobToKzgCommitment(blob: Blob): KZGCommitment;
|
export declare function blobToKzgCommitment(blob: Blob): KZGCommitment;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* The public interface of this module exposes the functions as specified by
|
* 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
|
* 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 BLSFieldElement = Uint8Array; // 32 bytes
|
||||||
export type KZGProof = Uint8Array; // 48 bytes
|
export type KZGProof = Uint8Array; // 48 bytes
|
||||||
|
|
Loading…
Reference in New Issue