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

LEVM: Implement precompile BLS12_FP2_TO_G2 (EIP-2537) #1700

Closed
ilitteri opened this issue Jan 13, 2025 · 0 comments · Fixed by #1747
Closed

LEVM: Implement precompile BLS12_FP2_TO_G2 (EIP-2537) #1700

ilitteri opened this issue Jan 13, 2025 · 0 comments · Fixed by #1747
Assignees
Labels
levm Lambda EVM implementation pectra

Comments

@ilitteri
Copy link
Contributor

Follow the reference spec https://eips.ethereum.org/EIPS/eip-2537.

@ilitteri ilitteri added levm Lambda EVM implementation pectra labels Jan 13, 2025
@tomip01 tomip01 self-assigned this Jan 17, 2025
github-merge-queue bot pushed a commit that referenced this issue Jan 20, 2025
**Motivation**

<!-- Why does this pull request exist? What are its goals? -->
In this PR we implement the seventh precompile contract stated in
[EIP-2537](https://eips.ethereum.org/EIPS/eip-2537) for the Prague fork,
the BLS12_MAP_FP2_TO_G2

**Description**

<!-- A clear and concise general description of the changes this PR
introduces -->
For the address 0x11, the function `bls12_map_fp2_to_g2` si called.
The following specifications are implemented:

- Input format: Two field element of 64 bytes each with the first 16
bytes being zero.
- Output: One G2 point, consisting of 256 bytes with four field elements
64 bytes each.
- Gas cost: A constant value of `23800`.

state of the tests: bls12_map_fp2_to_g2: 26/26 (100.00%)

<!-- Link to issues: Resolves #111, Resolves #222 -->

Closes #1700
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
levm Lambda EVM implementation pectra
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants