Skip to content

API: argument order (breaking external Nim/C/Go/Rust EIP-4844 API#394

Merged
mratsim merged 1 commit intomasterfrom
api-function-argument-order
Jun 13, 2024
Merged

API: argument order (breaking external Nim/C/Go/Rust EIP-4844 API#394
mratsim merged 1 commit intomasterfrom
api-function-argument-order

Conversation

@mratsim
Copy link
Owner

@mratsim mratsim commented Jun 12, 2024

This changes the threadpool to always be first argument. It is the most "global" of the context, because it's at library/app level and not just KZG or BLS signatures.

As powers-of-tau and polynomial domains are also contexts, they are moved in front and this impacts KZG and IPA modules.

Furthermore, document the API.

It is inspired by libsecp256k1:

This breaks Nim, C, Go, Rust API and should be done now before we cut the first ever Constantine release.
This impacts Grandine's branch: #331

@mratsim
Copy link
Owner Author

mratsim commented Jun 13, 2024

1 windows CI failed due to a bad mingw mirror
image

@mratsim mratsim merged commit b33479d into master Jun 13, 2024
@mratsim mratsim deleted the api-function-argument-order branch June 13, 2024 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant