mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-16 21:24:12 +00:00
12 lines
695 B
TypeScript
12 lines
695 B
TypeScript
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: 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;
|
|
export declare function computeAggregateKzgProof(blobs: Blob[]): KZGProof;
|
|
export declare function verifyAggregateKzgProof(blobs: Blob[], expectedKzgCommitments: KZGCommitment[], kzgAggregatedProof: KZGProof): boolean;
|