Skip to content

Commit c5e9c3c

Browse files
authored
Add public methods section in KZG spec (#3795)
1 parent 5ace424 commit c5e9c3c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

specs/_features/eip7594/polynomial-commitments-sampling.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
88

99
- [Introduction](#introduction)
10+
- [Public Methods](#public-methods)
1011
- [Custom types](#custom-types)
1112
- [Constants](#constants)
1213
- [Preset](#preset)
@@ -55,10 +56,21 @@
5556

5657
This document extends [polynomial-commitments.md](polynomial-commitments.md) with the functions required for data availability sampling (DAS). It is not part of the core Deneb spec but an extension that can be optionally implemented to allow nodes to reduce their load using DAS.
5758

59+
## Public Methods
60+
5861
For any KZG library extended to support DAS, functions flagged as "Public method" MUST be provided by the underlying KZG library as public functions. All other functions are private functions used internally by the KZG library.
5962

6063
Public functions MUST accept raw bytes as input and perform the required cryptographic normalization before invoking any internal functions.
6164

65+
The following is a list of the public methods:
66+
67+
* [`compute_cells_and_kzg_proofs`](#compute_cells_and_kzg_proofs)
68+
* [`compute_cells`](#compute_cells)
69+
* [`verify_cell_kzg_proof`](#verify_cell_kzg_proof)
70+
* [`verify_cell_kzg_proof_batch`](#verify_cell_kzg_proof_batch)
71+
* [`recover_cells_and_kzg_proofs`](#recover_cells_and_kzg_proofs)
72+
73+
6274
## Custom types
6375

6476
| Name | SSZ equivalent | Description |

0 commit comments

Comments
 (0)