This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
feat: support bn256_pairing
precompiled contract by Godwoken syscall
#88
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4a76fbf
to
c227c01
Compare
bn256_pairing_istanbul
pre-compiled contractbn256_pairing_istanbul
pre-compiled contract
c227c01
to
71f78f2
Compare
TheWaWaR
reviewed
Sep 23, 2021
TheWaWaR
previously approved these changes
Sep 23, 2021
XuJiandong
suggested changes
Sep 16, 2022
4dc4d1e
to
c18cf7a
Compare
bn256_pairing_istanbul
pre-compiled contractbn256_pairing
precompiled contract by Godwoken syscall
c662a89
to
897ff86
Compare
jjyr
previously approved these changes
Oct 9, 2022
magicalne
previously approved these changes
Oct 10, 2022
zeroqn
previously approved these changes
Oct 12, 2022
fix(fuzz): unknown register name 't0' in asm https://github.com/Flouse/godwoken-polyjuice/runs/3676372772?check_suite_focus=true#step:10:14
error[E0463]: can't find crate for `core` | = note: the `riscv64imac-unknown-none-elf` target may not be installed = help: consider downloading the target with `rustup target add riscv64imac-unknown-none-elf` = help: consider building the standard library from source with `cargo build -Zbuild-std`
the gw prefix can filter out a lot unrelated log
jjyr
approved these changes
Nov 7, 2022
XuJiandong
approved these changes
Nov 7, 2022
magicalne
approved these changes
Nov 7, 2022
This was referenced Nov 13, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously,
bn256_pairing
precompiled contract was not supported due to too high cycle cost.This PR implements
bn256_pairing
precompiled contract by introducing new Godwoken syscall:Dependencies
Tests
test code:
https://github.com/Flouse/godwoken-polyjuice/blob/47865fc349d9485021b3e75205cfd621c1ada8e1/polyjuice-tests/src/test_cases/pre_compiled_contracts.rs#L163-L697
cmd: