Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Std-lib support for ZK opcodes #6832

Open
wants to merge 8 commits into
base: feature/zk-opcodes
Choose a base branch
from

Conversation

bitzoic
Copy link
Member

@bitzoic bitzoic commented Jan 14, 2025

Description

This PR adds support for the ecop and epar opcodes in the std-lib. It also introduces the Point2D and Scalar type support cryptographic operations.

The new crypto module follows the same format as developed in #5747 which is still yet to come, ensuring compatibility. The Point2D and Scalar types also use Bytes under the hood to ensure future curves with points larger than 32 bytes are still supported.

Checklist

  • I have linked to any relevant issues.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation where relevant (API docs, the reference, and the Sway book).
  • I have added tests that prove my fix is effective or that my feature works.
  • I have added (or requested a maintainer to add) the necessary Breaking* or New Feature labels where relevant.
  • I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
  • I have requested a review from the relevant team or maintainers.

@bitzoic bitzoic added enhancement New feature or request lib: std Standard library labels Jan 14, 2025
@bitzoic bitzoic self-assigned this Jan 14, 2025
@bitzoic bitzoic marked this pull request as ready for review January 22, 2025 09:22
@bitzoic bitzoic requested review from a team as code owners January 22, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lib: std Standard library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant