-
Notifications
You must be signed in to change notification settings - Fork 27
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
evm: Add EIP-2537 BLS12-381 precompiles #111
Conversation
I initially tried to remove this comment from this PR, but some words( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only updated TODO-klaytn
to TODO-kaia
. @yoomee1313 commented the original one.
Proposed changes
History
Implementation
This is an example contract that calls add operations.
Once deployed, can be called like this
The output of
bytes memory
is encoded asoffset(32bytes) | length(32bytes) | value(conductive 32bytes)
.The actual value of add operation starts from
64
, the total output size is192
bytes, and the actual value size is128
bytes.Discussion
The calculated CC numbers were based on static execution (comparison with other existing operations).
add
operation was selected and the CC value was derived from below.Types of changes
Please put an x in the boxes related to your change.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
I have read the CLA Document and I hereby sign the CLA
in first time contribute$ make test
)Related issues
Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...