File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 2
2
* Interface for an externally provided kzg library used when creating blob transactions
3
3
*/
4
4
export interface KZG {
5
+ // eip-4844
5
6
blobToKzgCommitment ( blob : string ) : string
6
7
computeBlobProof ( blob : string , commitment : string ) : string
7
8
verifyProof ( polynomialKZG : string , z : string , y : string , KZGProof : string ) : boolean
@@ -10,4 +11,15 @@ export interface KZG {
10
11
expectedKZGCommitments : string [ ] ,
11
12
KZGProofs : string [ ] ,
12
13
) : boolean
14
+ // eip-7594
15
+ computeCells ( blob : string ) : string [ ]
16
+ computeCellsAndProofs ( blob : string ) : [ string [ ] , string [ ] ]
17
+ recoverCells ( indices : number [ ] , cells : string [ ] ) : string [ ]
18
+ recoverCellsAndProofs ( indices : number [ ] , cells : string [ ] ) : [ string [ ] , string [ ] ]
19
+ verifyCellKzgProofBatch (
20
+ commitments : string [ ] ,
21
+ indices : number [ ] ,
22
+ cells : string [ ] ,
23
+ proofs : string [ ] ,
24
+ ) : boolean
13
25
}
You can’t perform that action at this time.
0 commit comments