Skip to content

Commit

Permalink
docs: update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Apr 30, 2024
1 parent 37e8dd6 commit e5a67e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions bindings/node.js/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ API. The core functionality was originally a stripped-down copy of
since then. This package wraps that native `c-kzg` C code in C/C++ NAPI
bindings for use in node.js applications.

Spec: <https://github.com/ethereum/consensus-specs/blob/dev/specs/eip4844/polynomial-commitments.md>
Spec: <https://github.com/ethereum/consensus-specs/blob/dev/specs/deneb/polynomial-commitments.md>

## Prerequisites

Expand Down Expand Up @@ -64,11 +64,11 @@ const isValid = verifyBlobKzgProofBatch(blobs, commitments, proofs);
* ".txt" extension.
*
* Uses user provided location first. If one is not provided then defaults to
* the official Ethereum mainnet setup from the kzg ceremony. Should only be
* used for cases where the Ethereum official mainnet kzg setup is acceptable.
* the official Ethereum mainnet setup from the KZG ceremony. Should only be
* used for cases where the Ethereum official mainnet KZG setup is acceptable.
*
* @param {string | undefined} filePath - .txt/.json file with setup configuration
* @default - If no string is passed the default trusted setup from the Ethereum kzg ceremony is used
* @default - If no string is passed the default trusted setup from the Ethereum KZG ceremony is used
*
* @throws {TypeError} - Non-String input
* @throws {Error} - For all other errors. See error message for more info
Expand Down
6 changes: 3 additions & 3 deletions bindings/node.js/lib/kzg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export const FIELD_ELEMENTS_PER_BLOB: number;
* ".txt" extension.
*
* Uses user provided location first. If one is not provided then defaults to
* the official Ethereum mainnet setup from the kzg ceremony. Should only be
* used for cases where the Ethereum official mainnet kzg setup is acceptable.
* the official Ethereum mainnet setup from the KZG ceremony. Should only be
* used for cases where the Ethereum official mainnet KZG setup is acceptable.
*
* @param {string | undefined} filePath
* @default - If no string is passed the default trusted setup from the Ethereum kzg ceremony is used
* @default - If no string is passed the default trusted setup from the Ethereum KZG ceremony is used
*
* @throws {TypeError} - Non-String input
* @throws {Error} - For all other errors. See error message for more info
Expand Down
2 changes: 1 addition & 1 deletion bindings/node.js/lib/kzg.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function transformTrustedSetupJson(filePath) {
* @throws {TypeError} - Invalid file type
* @throws {Error} - Invalid location or no default trusted setup found
*
* @remarks - This function is only exported for testing purposes. It should
* @remarks - This function is only exported for testing purposes. It should
* not be used directly. Not included in the kzg.d.ts types for that
* reason.
*/
Expand Down

0 comments on commit e5a67e1

Please sign in to comment.